Project Cleanup

This commit is contained in:
2022-11-14 12:22:32 +10:30
parent 2a7cc03d58
commit 55104a5538
5 changed files with 8 additions and 4 deletions
+2
View File
@@ -67,6 +67,8 @@ class OpenStackConnection_x:
response = requests.get(url, headers=headers)
elif getPost=="POST":
response = requests.post(url, data=data_json, headers=headers)
elif getPost=="DELETE":
response = requests.delete(url, headers=headers)
else:
raise ValueError("Unknown request type")
Binary file not shown.
+1 -1
View File
@@ -82,5 +82,5 @@ class myopenstack_keystone():
log.info("Deleting a project")
_self.newProjectData=_self.connection.make_request("DELETE", "projects/"+id, "",
os.getenv("OS_AUTH_URL")).json()
os.getenv("OS_AUTH_URL"))
return _self.newProjectData