auto_encrypt: check previously ignored error (#6604)

pull/6932/head
Davor Kapsa 5 years ago committed by GitHub
parent 5a6e602b86
commit 3cb4def563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,6 +35,9 @@ func (a *AutoEncrypt) Sign(
rootsArgs := structs.DCSpecificRequest{Datacenter: args.Datacenter} rootsArgs := structs.DCSpecificRequest{Datacenter: args.Datacenter}
roots := structs.IndexedCARoots{} roots := structs.IndexedCARoots{}
err := c.Roots(&rootsArgs, &roots) err := c.Roots(&rootsArgs, &roots)
if err != nil {
return err
}
cert := structs.IssuedCert{} cert := structs.IssuedCert{}
err = c.Sign(args, &cert) err = c.Sign(args, &cert)

Loading…
Cancel
Save