This commit is contained in:
Cory Hawkless 2022-10-12 16:58:07 +10:30
parent 7e540c54e9
commit b43c082424
1 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ from ng_openstack import exceptions
class Openstack_Request:
def make_request(_self, getPost, url, data, apiEndpoint, scopedProjectID=""):
print("Making a request {} {} ".format(apiEndpoint,url))
# Default the scope project to the value set in .env.example, allow the user to override if required(EG creating backups)
if scopedProjectID== "":
scopedProjectID=os.getenv("OS_PROJECT_ID")
@ -110,7 +110,7 @@ class Openstack_Request:
except:
raise exceptions.ItemNotFoundError("OpenstackToken not found in redis")
def saveTokenToRedis(username, authDomain, scopeDomain, scopeProject,token):
def saveTokenToRedis(_self, username, authDomain, scopeDomain, scopeProject,token):
REDIS=redis.Redis()