Skip to content

Commit

Permalink
Update agent/consul/acl_endpoint.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jjacobson93 authored Aug 1, 2023
1 parent d63fa54 commit 3d099a6
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 @@ -917,7 +917,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 3d099a6

Please sign in to comment.