Browse Source

Merge "[train-only] Inventory doesn't contain admin password" into stable/train

changes/37/794437/1
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
f86ae3f2a5
1 changed files with 9 additions and 5 deletions
  1. +9
    -5
      tripleo_validations/utils.py

+ 9
- 5
tripleo_validations/utils.py View File

@ -62,11 +62,15 @@ def get_auth_session(auth_variables):
def get_swift_client(auth_variables):
return Connection(authurl=auth_variables.get('auth_url'),
user=auth_variables.get('username'),
key=auth_variables.get('password'),
auth_version='3',
tenant_name=auth_variables.get('project_name'))
password = auth_variables.get('password')
if password:
return Connection(authurl=auth_variables.get('auth_url'),
user=auth_variables.get('username'),
key=password,
auth_version='3',
tenant_name=auth_variables.get('project_name'))
return Connection(preauthurl=auth_variables.get('undercloud_swift_url'),
preauthtoken=auth_variables.get('os_auth_token'))
def get_nova_client(auth_variables):


Loading…
Cancel
Save