mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 18:20:00 -03:30
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user