Skip to content

Commit

Permalink
Merge 3d099a6 into backport/jer/read-only-policy/simply-fit-jackass
Browse files Browse the repository at this point in the history
  • Loading branch information
hc-github-team-consul-core authored Aug 1, 2023
2 parents 01395e3 + 3d099a6 commit 6c0a86a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/consul/acl_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ func (a *ACL) PolicySet(args *structs.ACLPolicySetRequest, reply *structs.ACLPol

if builtinPolicy, ok := structs.ACLBuiltinPolicies[policy.ID]; ok {
if policy.Datacenters != nil || len(policy.Datacenters) > 0 {
return fmt.Errorf("Changing the Datacenters of the builtin %s policy is not permitted", builtinPolicy.Name)
return fmt.Errorf("Changing the Datacenters of the %s policy is not permitted", builtinPolicy.Name)
}

if policy.Rules != idMatch.Rules {
Expand Down

0 comments on commit 6c0a86a

Please sign in to comment.