Skip to content

Commit

Permalink
Merge "Skip unnecessary SDK get_machine calls" into stable/zed
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Jul 12, 2023
2 parents f38f1d8 + 64fd2a8 commit 50dc58b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bifrost/inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 50dc58b

Please sign in to comment.