Commit ef8fec6c by dark-lbp Committed by Mariusz Kupidura

Fix printing of custom metadata using `show info` (#304)

parent bd407c63
...@@ -387,10 +387,10 @@ def pprint_dict_in_order(dictionary, order=None): ...@@ -387,10 +387,10 @@ def pprint_dict_in_order(dictionary, order=None):
def prettyprint(title, body): def prettyprint(title, body):
print_info("\n{}:".format(title.capitalize())) print_info("\n{}:".format(title.capitalize()))
if not isinstance(body, str): if not isinstance(body, str):
for value_element in value: for value_element in body:
print_info('- ', value_element) print_info('- ', value_element)
else: else:
print_info(value) print_info(body)
keys = dictionary.keys() keys = dictionary.keys()
for element in order: for element in order:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment