aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/python_moonclient
diff options
context:
space:
mode:
authorThomas Duval <thomas.duval@orange.com>2017-12-22 12:10:10 +0100
committerThomas Duval <thomas.duval@orange.com>2017-12-22 12:10:10 +0100
commitfd28068afe87b8c5d19b1e467a28b544aad7878d (patch)
tree1a26216d06dabf30f9c0f38a3115194f345e57eb /moonv4/python_moonclient
parent07414f03ddd0c62a919b387026c1b48225edcfd9 (diff)
Fix a bug when sending authorization requests
Change-Id: I21b3050bec61a98af1c59974d3d443ca44fc689d
Diffstat (limited to 'moonv4/python_moonclient')
-rw-r--r--moonv4/python_moonclient/python_moonclient/authz.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/moonv4/python_moonclient/python_moonclient/authz.py b/moonv4/python_moonclient/python_moonclient/authz.py
index 0ee62930..9458767e 100644
--- a/moonv4/python_moonclient/python_moonclient/authz.py
+++ b/moonv4/python_moonclient/python_moonclient/authz.py
@@ -27,7 +27,7 @@ def _construct_payload(creds, current_rule, enforcer, target):
temp_target[key] = {}
_data = _json = None
if enforcer:
- _data = {'rule': json.dumps(current_rule),
+ _data = {'rule': current_rule,
'target': json.dumps(temp_target),
'credentials': json.dumps(creds)}
else: