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
commit ff32a5286e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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