mirror of https://github.com/docker/docs.git
Make a keysMap rather than just declaring
Signed-off-by: Ying Li <ying.li@docker.com>
This commit is contained in:
parent
57aaee1c1c
commit
6150c931dd
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue