Browse Source

auto_encrypt: check previously ignored error (#6604)

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

3
agent/consul/auto_encrypt_endpoint.go

@ -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…
Cancel
Save