diff --git a/acl/cache.go b/acl/cache.go index 76a493aa04..a4aa61e717 100644 --- a/acl/cache.go +++ b/acl/cache.go @@ -58,6 +58,7 @@ func (c *Cache) getPolicy(id, rules string) (*Policy, error) { if err != nil { return nil, err } + policy.ID = id c.policyCache.Add(id, policy) return policy, nil diff --git a/acl/policy.go b/acl/policy.go index 5e337f94e8..ecc11e1daf 100644 --- a/acl/policy.go +++ b/acl/policy.go @@ -14,6 +14,7 @@ const ( // Policy is used to represent the policy specified by // an ACL configuration. type Policy struct { + ID string `hcl:"-"` Keys []*KeyPolicy `hcl:"key"` }