Merge "Don't call sdk.connect() again"

This commit is contained in:
Zuul 2020-04-09 14:20:32 +00:00 committed by Gerrit Code Review
commit 9d9208389e
2 changed files with 2 additions and 4 deletions

View File

@ -105,8 +105,7 @@ def run_module():
**openstack_module_kwargs()
)
sdk, _ = openstack_cloud_from_module(module)
conn = sdk.connect()
_, conn = openstack_cloud_from_module(module)
session = conn.session
# if the user is working with this module in only check mode we do not

View File

@ -124,8 +124,7 @@ def main():
**openstack_module_kwargs()
)
sdk, _ = openstack_cloud_from_module(module)
conn = sdk.connect()
_, conn = openstack_cloud_from_module(module)
tripleo = TripleOCommon(session=conn.session)
if hasattr(tripleo, module.params["action"]):