Browse Source

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

tags/1.4.0
Zuul 3 months ago
committed by Gerrit Code Review
parent
commit
9d9208389e
2 changed files with 2 additions and 4 deletions
  1. +1
    -2
      tripleo_ansible/ansible_plugins/modules/baremetal_register_or_update_nodes.py
  2. +1
    -2
      tripleo_ansible/ansible_plugins/modules/os_tripleo_baremetal_configure.py

+ 1
- 2
tripleo_ansible/ansible_plugins/modules/baremetal_register_or_update_nodes.py 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


+ 1
- 2
tripleo_ansible/ansible_plugins/modules/os_tripleo_baremetal_configure.py 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"]):


Loading…
Cancel
Save