Merge "Fix inventory_manage when the component for a host is not defined"

This commit is contained in:
Zuul 2020-05-31 19:40:22 +00:00 committed by Gerrit Code Review
commit d880470752

View File

@ -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