From 6a7b564ef94ff7bf15f23aba0a99c1f5bdeff5d0 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Tue, 13 Oct 2020 18:53:45 -0700 Subject: [PATCH] Unify indent type. This change changes the indentation used by `step ca init` to be consistent with Config.Save used by `step ca provisioner *`. --- pki/pki.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pki/pki.go b/pki/pki.go index 0576bc00..50ee4e56 100644 --- a/pki/pki.go +++ b/pki/pki.go @@ -538,7 +538,7 @@ func (p *PKI) Save(opt ...Option) error { return err } - b, err := json.MarshalIndent(config, "", " ") + b, err := json.MarshalIndent(config, "", "\t") if err != nil { return errors.Wrapf(err, "error marshaling %s", p.config) } @@ -568,7 +568,7 @@ func (p *PKI) Save(opt ...Option) error { CAUrl: p.caURL, Fingerprint: p.rootFingerprint, } - b, err = json.MarshalIndent(defaults, "", " ") + b, err = json.MarshalIndent(defaults, "", "\t") if err != nil { return errors.Wrapf(err, "error marshaling %s", p.defaults) }