diff --git a/vmtp/credentials.py b/vmtp/credentials.py index 3a41218..58e01b5 100644 --- a/vmtp/credentials.py +++ b/vmtp/credentials.py @@ -91,7 +91,7 @@ class Credentials(object): self.rc_project_name = value elif name == "PROJECT_DOMAIN_ID" or name == "PROJECT_DOMAIN_NAME": self.rc_project_domain_id = value - elif name == "USER_DOMAIN_ID" or name == "USER_DOMAIN_ID": + elif name == "USER_DOMAIN_ID" or name == "USER_DOMAIN_NAME": self.rc_user_domain_id = value else: LOG.error('Error: rc file does not exist %s', openrc_file) diff --git a/vmtp/vmtp.py b/vmtp/vmtp.py index 45cbe14..a8f7e7e 100755 --- a/vmtp/vmtp.py +++ b/vmtp/vmtp.py @@ -219,8 +219,6 @@ class VmtpTest(object): if self.config.vm_image_url != "": LOG.info('%s: image for VM not found, trying to upload it ...', self.config.image_name) - keystoneclient.Client(self.cred.rc_identity_api_version, - session=sess, auth_url=creds['auth_url']) self.glance_client = glanceclient.Client('1', session=sess) self.comp.upload_image_via_url( self.glance_client,