Merge "Skip unnecessary SDK get_machine calls" into stable/2023.1
This commit is contained in:
@@ -232,7 +232,6 @@ def _process_sdk(groups, hostvars):
|
||||
node_names = node_names.split(',')
|
||||
|
||||
for machine in machines:
|
||||
machine = cloud.get_machine(machine['uuid'])
|
||||
if machine['name'] is None:
|
||||
name = machine['uuid']
|
||||
else:
|
||||
@@ -241,6 +240,7 @@ def _process_sdk(groups, hostvars):
|
||||
if node_names and name not in node_names:
|
||||
continue
|
||||
|
||||
machine = cloud.get_machine(machine['uuid'])
|
||||
new_machine = {}
|
||||
for key, value in machine.items():
|
||||
# NOTE(TheJulia): We don't want to pass infomrational links
|
||||
|
||||
Reference in New Issue
Block a user