Commit 9adbf711 by Arnau Comas Codina

Missing domain params for OS connection

parent 35ea5d83
import openstack import openstack
from keystoneauth1.identity import v3 from keystoneauth1.identity import v3
from keystoneauth1 import session from keystoneauth1 import session
from keystoneclient.v3 import client
class OpenStackConnection(object): class OpenStackConnection(object):
...@@ -12,6 +13,8 @@ class OpenStackConnection(object): ...@@ -12,6 +13,8 @@ class OpenStackConnection(object):
self.openstack = openstack.connect(auth_url=auth["auth_url"], self.openstack = openstack.connect(auth_url=auth["auth_url"],
username=auth["username"], username=auth["username"],
password=auth["password"], password=auth["password"],
user_domain_id=auth["user_domain_id"],
project_domain_id=auth["project_domain_id"],
project_id=auth["project_id"], project_id=auth["project_id"],
project_name=auth["project_name"], project_name=auth["project_name"],
region_name=auth["region_name"] region_name=auth["region_name"]
...@@ -20,6 +23,7 @@ class OpenStackConnection(object): ...@@ -20,6 +23,7 @@ class OpenStackConnection(object):
username=auth["username"], username=auth["username"],
password=auth["password"], password=auth["password"],
user_domain_id=auth["user_domain_id"], user_domain_id=auth["user_domain_id"],
project_id=auth["project_id"],) project_id=auth["project_id"]
)
self.client_session = session.Session(auth=client_auth) self.client_session = session.Session(auth=client_auth)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment