Fix a bug when sending authorization requests 43/49543/1
authorThomas Duval <thomas.duval@orange.com>
Fri, 22 Dec 2017 11:10:10 +0000 (12:10 +0100)
committerThomas Duval <thomas.duval@orange.com>
Fri, 22 Dec 2017 11:10:10 +0000 (12:10 +0100)
Change-Id: I21b3050bec61a98af1c59974d3d443ca44fc689d

moonv4/python_moonclient/python_moonclient/authz.py

index 0ee6293..9458767 100644 (file)
@@ -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: