Change parsing error to set rules to nil
This commit is contained in:
parent
4e8c856050
commit
4a159f5dcf
|
@ -268,7 +268,7 @@ func (a *ACL) GetPolicy(args *structs.ACLPolicySpecificRequest, reply *structs.S
|
|||
rules, err := policy.Parse(out.Rules)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
reply.Policy.RulesJSON = nil
|
||||
} else {
|
||||
reply.Policy.RulesJSON = rules
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue