Merge "Support OS_AUTH_TYPE=none in inventory module"

This commit is contained in:
Zuul 2021-02-24 02:53:05 +00:00 committed by Gerrit Code Review
commit 903834017d

View File

@ -125,12 +125,17 @@ def run_module():
tripleo = tc.TripleOCommon(session=conn.session)
heat = tripleo.get_orchestration_client()
auth_url = getattr(conn.session.auth, "auth_url", None)
username = getattr(conn.session.auth, "_username", None)
project = getattr(conn.session.auth, "_project_name", None)
cacert = getattr(conn.session.auth, "verify", None)
inventory_path = inventory.generate_tripleo_ansible_inventory(
heat,
conn.session.auth.auth_url,
conn.session.auth._username,
conn.session.auth._project_name,
conn.session.verify,
auth_url,
username,
project,
cacert,
plan,
work_dir,
python_interpretor,