Browse Source

Merge pull request #6605 from vrutkovs/failure_summary_convert_msg_to_string

failure_summary: make sure msg is always a string
Scott Dodson 7 years ago
parent
commit
443c045261

+ 2 - 0
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),