summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2018-01-10 17:10:02 -0500
committerGitHub <noreply@github.com>2018-01-10 17:10:02 -0500
commit443c045261253a8c87f46b7158eff2d7d2c1d67d (patch)
treefbd6d399c6245817d52f30419d0f2c960f84ae5f /roles
parent21c6da3a052e8f0df509458bbaa6abc659874f0e (diff)
parent6d15313473e273a368f002972bdb5960dc5f1c78 (diff)
downloadopenshift-443c045261253a8c87f46b7158eff2d7d2c1d67d.tar.gz
openshift-443c045261253a8c87f46b7158eff2d7d2c1d67d.tar.bz2
openshift-443c045261253a8c87f46b7158eff2d7d2c1d67d.tar.xz
openshift-443c045261253a8c87f46b7158eff2d7d2c1d67d.zip
Merge pull request #6605 from vrutkovs/failure_summary_convert_msg_to_string
failure_summary: make sure msg is always a string
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_health_checker/callback_plugins/zz_failure_summary.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/openshift_health_checker/callback_plugins/zz_failure_summary.py b/roles/openshift_health_checker/callback_plugins/zz_failure_summary.py
index dcaf87eca..c83adb26d 100644
--- a/roles/openshift_health_checker/callback_plugins/zz_failure_summary.py
+++ b/roles/openshift_health_checker/callback_plugins/zz_failure_summary.py
@@ -175,6 +175,8 @@ def format_failure(failure):
play = failure['play']
task = failure['task']
msg = failure['msg']
+ if not isinstance(msg, string_types):
+ msg = str(msg)
checks = failure['checks']
fields = (
(u'Hosts', host),