Make .dockercfg with json.MarshallIndent
Fixes #10129 Makes the .dockercfg more human parsable. Also cleaned up the (technically) racey login test. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
1f98347924
commit
4eaf644321
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ func SaveConfig(configFile *ConfigFile) error {
|
||||||
configs[k] = authCopy
|
configs[k] = authCopy
|
||||||
}
|
}
|
||||||
|
|
||||||
b, err := json.Marshal(configs)
|
b, err := json.MarshalIndent(configs, "", "\t")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue