Unify indent type.

This change changes the indentation used by `step ca init` to be
consistent with Config.Save used by `step ca provisioner *`.
This commit is contained in:
Mariano Cano 2020-10-13 18:53:45 -07:00
parent 7d1686dc53
commit 6a7b564ef9

View file

@ -538,7 +538,7 @@ func (p *PKI) Save(opt ...Option) error {
return err return err
} }
b, err := json.MarshalIndent(config, "", " ") b, err := json.MarshalIndent(config, "", "\t")
if err != nil { if err != nil {
return errors.Wrapf(err, "error marshaling %s", p.config) return errors.Wrapf(err, "error marshaling %s", p.config)
} }
@ -568,7 +568,7 @@ func (p *PKI) Save(opt ...Option) error {
CAUrl: p.caURL, CAUrl: p.caURL,
Fingerprint: p.rootFingerprint, Fingerprint: p.rootFingerprint,
} }
b, err = json.MarshalIndent(defaults, "", " ") b, err = json.MarshalIndent(defaults, "", "\t")
if err != nil { if err != nil {
return errors.Wrapf(err, "error marshaling %s", p.defaults) return errors.Wrapf(err, "error marshaling %s", p.defaults)
} }