Get machine if it is missing properties
Ironicclient, by default, does not return a detailed list of nodes and shade does not provide the mechanism needed to request a detailed list. If the machine properties are missing then the machine details will be requested again. Change-Id: I46b58ae9f8ee6cbe676947b43cae7db040498c68 Closes-Bug: #1474514
This commit is contained in:
parent
01fb404431
commit
f6318cdc25
@ -307,6 +307,8 @@ def _process_shade(groups, hostvars):
|
||||
cloud = shade.operator_cloud(**options)
|
||||
machines = cloud.list_machines()
|
||||
for machine in machines:
|
||||
if 'properties' not in machine:
|
||||
machine = cloud.get_machine(machine['uuid'])
|
||||
if machine['name'] is None:
|
||||
name = machine['uuid']
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user