Skip to content

Commit

Permalink
Fixed make end2end_show when specifying multiple HMCs in inv.file
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Maier <maiera@de.ibm.com>
  • Loading branch information
andy-maier committed Jan 11, 2024
1 parent e9133b5 commit a1c7bc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zhmcclient/testutils/_hmc_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ def print_hmc_definitions():
format("HMC nickname", "HMC host / mock file", "Description"))
for hd in hmcdefs.list_all_hmcs():
host = hd.mock_file or hd.host
print("{:20s} {:24s} {}".format(hd.nickname, host, hd.description))
if isinstance(host, list):
host = ','.join(host)
print("{:20s} {:24s} {}".format(hd.nickname, str(host), hd.description))

print("\nGroups in inventory file:")
print("{:20s} {}".format("Group name", "HMCs in the group"))
Expand Down

0 comments on commit a1c7bc3

Please sign in to comment.