Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
interface-openstack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
4
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9adbf711
authored
Apr 24, 2020
by
Arnau Comas Codina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missing domain params for OS connection
parent
35ea5d83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
implementation/utils/connection.py
+5
-1
No files found.
implementation/utils/connection.py
View file @
9adbf711
import
openstack
from
keystoneauth1.identity
import
v3
from
keystoneauth1
import
session
from
keystoneclient.v3
import
client
class
OpenStackConnection
(
object
):
...
...
@@ -12,6 +13,8 @@ class OpenStackConnection(object):
self
.
openstack
=
openstack
.
connect
(
auth_url
=
auth
[
"auth_url"
],
username
=
auth
[
"username"
],
password
=
auth
[
"password"
],
user_domain_id
=
auth
[
"user_domain_id"
],
project_domain_id
=
auth
[
"project_domain_id"
],
project_id
=
auth
[
"project_id"
],
project_name
=
auth
[
"project_name"
],
region_name
=
auth
[
"region_name"
]
...
...
@@ -20,6 +23,7 @@ class OpenStackConnection(object):
username
=
auth
[
"username"
],
password
=
auth
[
"password"
],
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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment