auto_encrypt: check previously ignored error (#6604)
This commit is contained in:
parent
e6e6759b94
commit
c280dd8549
|
@ -35,6 +35,9 @@ func (a *AutoEncrypt) Sign(
|
|||
rootsArgs := structs.DCSpecificRequest{Datacenter: args.Datacenter}
|
||||
roots := structs.IndexedCARoots{}
|
||||
err := c.Roots(&rootsArgs, &roots)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
cert := structs.IssuedCert{}
|
||||
err = c.Sign(args, &cert)
|
||||
|
|
Loading…
Reference in New Issue