Merge "Fix inventory_manage when the component for a host is not defined"
This commit is contained in:
commit
d880470752
@ -236,6 +236,9 @@ def print_inventory(inventory, sort_key):
|
||||
else:
|
||||
row = []
|
||||
for _rl in required_list:
|
||||
if _rl == 'component':
|
||||
if values.get(_rl) is None:
|
||||
values[_rl] = "-undefined-"
|
||||
if _rl == 'container_name':
|
||||
if values.get(_rl) is None:
|
||||
values[_rl] = key
|
||||
|
Loading…
Reference in New Issue
Block a user