fix 895 86/8286/1
authorlombardofr <lombardo@everyup.it>
Mon, 2 Dec 2019 11:18:30 +0000 (12:18 +0100)
committerlombardofr <lombardo@everyup.it>
Mon, 2 Dec 2019 11:18:30 +0000 (12:18 +0100)
Change-Id: Ie269b1336e6d4f9950e5f03fad3018cbe94351bd
Signed-off-by: lombardofr <lombardo@everyup.it>
lib/osm/osmclient/clientv2.py

index 6bb8c71..cee0647 100644 (file)
@@ -116,7 +116,7 @@ class Client(object):
         _url = "{0}/admin/v1/roles/{1}".format(self._base_path, role_id)
         
         try:
-            r = requests.put(_url, json=role_data, verify=False, headers=headers)
+            r = requests.patch(_url, json=role_data, verify=False, headers=headers)
         except Exception as e:
             log.exception(e)
             result['data'] = str(e)