diff options
author | Thomas Duval <thomas.duval@orange.com> | 2018-01-04 16:52:34 +0100 |
---|---|---|
committer | Thomas Duval <thomas.duval@orange.com> | 2018-01-04 16:52:34 +0100 |
commit | 3a3072d2e1c4a17375405a6e7e8fd9adeab0c434 (patch) | |
tree | 82f408efbe26df1a03b669810e0977cd622cac10 /moon_wrapper | |
parent | 64232ea214cb6fdccee5c53a360231c2f2802b27 (diff) |
wrapper: send pdp_id to interface instead of keystone_project_id
Change-Id: I847cad7d096ae8af23334eb049d583d4ed06d8d4
Diffstat (limited to 'moon_wrapper')
-rw-r--r-- | moon_wrapper/moon_wrapper/api/oslowrapper.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/moon_wrapper/moon_wrapper/api/oslowrapper.py b/moon_wrapper/moon_wrapper/api/oslowrapper.py index 03bdfc69..d2836c08 100644 --- a/moon_wrapper/moon_wrapper/api/oslowrapper.py +++ b/moon_wrapper/moon_wrapper/api/oslowrapper.py @@ -99,14 +99,12 @@ class OsloWrapper(Resource): _object = self.__get_object(target, credentials) _action = rule _project_id = self.__get_project_id(target, credentials) - logger.debug("POST with args project={} / " - "subject={} - object={} - action={}".format( - _project_id, _subject, _object, rule)) + _pdp_id = self.CACHE.get_pdp_from_keystone_project(_project_id) interface_url = self.get_interface_url(_project_id) logger.debug("interface_url={}".format(interface_url)) req = requests.get("{}/authz/{}/{}/{}/{}".format( interface_url, - _project_id, + _pdp_id, _subject, _object, _action |