forked from TrueCloudLab/certificates
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:
parent
7d1686dc53
commit
6a7b564ef9
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue