X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fsol005%2Frole.py;h=2544a7b6646a4921f31d1ecf4f98860e68868d63;hb=9994aec868ca4e9caf22f206ebede0387b6ad4f6;hp=c80e50e5954e9c664849a0d67561b2d6f5ebbddb;hpb=bd39b09580560307a1ac23be4984783d1bea9238;p=osm%2Fosmclient.git diff --git a/osmclient/sol005/role.py b/osmclient/sol005/role.py index c80e50e..2544a7b 100644 --- a/osmclient/sol005/role.py +++ b/osmclient/sol005/role.py @@ -65,7 +65,8 @@ class Role(object): role["permissions"] = role_permissions http_code, resp = self._http.post_cmd(endpoint=self._apiBase, - postfields_dict=role) + postfields_dict=role, + skip_query_admin=True) # print('HTTP CODE: {}'.format(http_code)) # print('RESP: {}'.format(resp)) #if http_code in (200, 201, 202, 204): @@ -148,7 +149,8 @@ class Role(object): del new_role_obj["permissions"] http_code, resp = self._http.patch_cmd(endpoint='{}/{}'.format(self._apiBase, role_obj['_id']), - postfields_dict=new_role_obj) + postfields_dict=new_role_obj, + skip_query_admin=True) # print('HTTP CODE: {}'.format(http_code)) # print('RESP: {}'.format(resp)) if http_code in (200, 201, 202): @@ -184,7 +186,8 @@ class Role(object): if force: querystring = '?FORCE=True' http_code, resp = self._http.delete_cmd('{}/{}{}'.format(self._apiBase, - role['_id'], querystring)) + role['_id'], querystring), + skip_query_admin=True) # print('HTTP CODE: {}'.format(http_code)) # print('RESP: {}'.format(resp)) if http_code == 202: @@ -214,7 +217,7 @@ class Role(object): filter_string = '' if filter: filter_string = '?{}'.format(filter) - _, resp = self._http.get2_cmd('{}{}'.format(self._apiBase, filter_string)) + _, resp = self._http.get2_cmd('{}{}'.format(self._apiBase, filter_string),skip_query_admin=True) # print('RESP: {}'.format(resp)) if resp: return json.loads(resp)