Skip to content

Commit

Permalink
Unify indent type.
Browse files Browse the repository at this point in the history
This change changes the indentation used by `step ca init` to be
consistent with Config.Save used by `step ca provisioner *`.
  • Loading branch information
maraino committed Oct 14, 2020
1 parent 7d1686d commit 6a7b564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pki/pki.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 6a7b564

Please sign in to comment.