Write configuration only if encoding succeeds
This commit fixes a problem when the ca.json is truncated if the encoding of the configuration fails. This can happen by adding a new provisioner with bad template data. Related to smallstep/cli#994pull/1501/head
parent
47d820561f
commit
30ce9e65f7
Loading…
Reference in New Issue