VNF_BASE - fix quota update failed
authorboucherv <valentin.boucher@orange.com>
Fri, 20 Jan 2017 09:56:26 +0000 (10:56 +0100)
committerboucherv <valentin.boucher@orange.com>
Fri, 20 Jan 2017 09:56:26 +0000 (10:56 +0100)
JIRA: FUNCTEST-702

Change-Id: Ia831d35079f9286f924d0b407a64bf376b1cff21
Signed-off-by: boucherv <valentin.boucher@orange.com>
functest/core/vnf_base.py

index 9952049..9d8b6dc 100644 (file)
@@ -152,14 +152,15 @@ class VnfOnBoardingBase(base.TestcaseBase):
 
         self.logger.info("Update OpenStack creds informations")
         self.creds.update({
-            "username": self.tenant_name,
-            "password": self.tenant_name,
             "tenant": self.tenant_name,
         })
-        self.glance_client = os_utils.get_glance_client(self.creds)
         self.neutron_client = os_utils.get_neutron_client(self.creds)
         self.nova_client = os_utils.get_nova_client(self.creds)
-
+        self.creds.update({
+            "username": self.tenant_name,
+            "password": self.tenant_name,
+        })
+        self.glance_client = os_utils.get_glance_client(self.creds)
         self.logger.info("Upload some OS images if it doesn't exist")
 
         temp_dir = os.path.join(self.data_dir, "tmp/")