Browse Source

Revert some lines

pull/18347/head
Jeremy Jacobson 1 year ago
parent
commit
ac13bf16d6
  1. 6
      command/acl/acl_helpers.go

6
command/acl/acl_helpers.go

@ -46,6 +46,12 @@ func GetTokenAccessorIDFromPartial(client *api.Client, partialAccessorID string)
func GetPolicyIDFromPartial(client *api.Client, partialID string) (string, error) {
// try the builtin policies (by name) first
for _, policy := range structs.ACLBuiltinPolicies {
if partialID == policy.Name {
return policy.ID, nil
}
}
if policy, ok := structs.ACLBuiltinPolicies[partialID]; ok {
return policy.ID, nil
}

Loading…
Cancel
Save