Merge pull request #4688 from ryanpetrello/human-format-null

fix a human format bug for settings

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2019-09-09 20:08:59 +00:00
committed by GitHub

View File

@@ -165,6 +165,8 @@ def format_human(output, fmt):
except (ValueError, TypeError): except (ValueError, TypeError):
if isinstance(v, (list, dict)): if isinstance(v, (list, dict)):
return json.dumps(v) return json.dumps(v)
if v is None:
return ''
return v return v
# calculate the max width of each column # calculate the max width of each column