diff options
author | Thomas Duval <thomas.duval@orange.com> | 2017-12-22 12:10:10 +0100 |
---|---|---|
committer | Thomas Duval <thomas.duval@orange.com> | 2017-12-22 12:10:10 +0100 |
commit | fd28068afe87b8c5d19b1e467a28b544aad7878d (patch) | |
tree | 1a26216d06dabf30f9c0f38a3115194f345e57eb /moonv4/python_moonclient | |
parent | 07414f03ddd0c62a919b387026c1b48225edcfd9 (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.py | 2 |
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: |