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:
Brian Goff 2015-01-16 09:47:32 -05:00
parent 1f98347924
commit 4eaf644321

View file

@ -133,7 +133,7 @@ func SaveConfig(configFile *ConfigFile) error {
configs[k] = authCopy
}
b, err := json.Marshal(configs)
b, err := json.MarshalIndent(configs, "", "\t")
if err != nil {
return err
}