Change parsing error to set rules to nil

This commit is contained in:
Buck Doyle 2019-08-29 15:50:34 -05:00
parent 4e8c856050
commit 4a159f5dcf
1 changed files with 1 additions and 1 deletions

View File

@ -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
}