Skip to content
Snippets Groups Projects
Commit 15c2ac2c authored by Mark Haines's avatar Mark Haines Committed by review.rocks
Browse files

Make sure we return a JSON object when returning the values of specif…

…ic keys from a push rule
parent fb9b5b6f
No related branches found
No related tags found
No related merge requests found
......@@ -324,7 +324,9 @@ def _filter_ruleset_with_path(ruleset, path):
attr = path[0]
if attr in the_rule:
return the_rule[attr]
# Make sure we return a JSON object as the attribute may be a
# JSON value.
return {attr: the_rule[attr]}
else:
raise UnrecognizedRequestError()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment