auto_encrypt: check previously ignored error (#6604)

This commit is contained in:
Davor Kapsa 2020-02-03 10:35:11 +01:00 committed by GitHub
parent e6e6759b94
commit c280dd8549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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)