From 1ebc3b8be403e97beadfa1347751e4658da5f40e Mon Sep 17 00:00:00 2001 From: Levi Date: Sun, 7 May 2017 17:46:03 -0500 Subject: [PATCH 1/2] testing --- hosting/opennebula_functions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosting/opennebula_functions.py b/hosting/opennebula_functions.py index 7657b457..ef12a9c1 100644 --- a/hosting/opennebula_functions.py +++ b/hosting/opennebula_functions.py @@ -38,6 +38,7 @@ class HostingManageVMAdmin(admin.ModelAdmin): # Function to initialize opennebula client based on the logged in # user def init_opennebula_client(self, request): + import pdb;pdb.set_trace() if self.oneadmin_client is None: self.oneadmin_client = oca.Client("{0}:{1}".format(settings.OPENNEBULA_USERNAME, settings.OPENNEBULA_PASSWORD), @@ -58,7 +59,7 @@ class HostingManageVMAdmin(admin.ModelAdmin): self.create_opennebula_user(request) if self.client is None: opennebula_user = request.user.email - opennebula_user_password = get_random_password() + opennebula_user_password ='19737450' self.client = oca.Client("{0}:{1}".format(opennebula_user, opennebula_user_password), "{protocol}://{domain}:{port}{endpoint}".format( protocol=settings.OPENNEBULA_PROTOCOL, From 233642a6b12c3af5c6bb9c4e2b5b96f3fc5e5312 Mon Sep 17 00:00:00 2001 From: Levi Date: Sun, 7 May 2017 17:47:41 -0500 Subject: [PATCH 2/2] removed pdb --- hosting/opennebula_functions.py | 1 - 1 file changed, 1 deletion(-) diff --git a/hosting/opennebula_functions.py b/hosting/opennebula_functions.py index ef12a9c1..93919a29 100644 --- a/hosting/opennebula_functions.py +++ b/hosting/opennebula_functions.py @@ -38,7 +38,6 @@ class HostingManageVMAdmin(admin.ModelAdmin): # Function to initialize opennebula client based on the logged in # user def init_opennebula_client(self, request): - import pdb;pdb.set_trace() if self.oneadmin_client is None: self.oneadmin_client = oca.Client("{0}:{1}".format(settings.OPENNEBULA_USERNAME, settings.OPENNEBULA_PASSWORD),