Make a keysMap rather than just declaring

Signed-off-by: Ying Li <ying.li@docker.com>
This commit is contained in:
Ying Li 2015-10-28 12:47:42 -07:00
parent 57aaee1c1c
commit 6150c931dd
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ func tufInit(cmd *cobra.Command, args []string) {
fatalf(err.Error())
}
var keysMap map[string]string
keysMap := make(map[string]string)
for k, role := range nRepo.KeyStoreManager.KeyStore.ListKeys() {
if role == "root" {
keysMap[k] = role