Fix inverted log message arguments

Thanks @pcm32!
This commit is contained in:
Luca Pireddu
2018-10-26 16:10:29 +02:00
committed by GitHub
parent cf02c98127
commit c13da94fd7
+1 -1
View File
@@ -544,7 +544,7 @@ class KubernetesJobRunner(AsynchronousJobRunner):
log_string += "\n\n==== Pod " + pod.name + " log end ===="
except Exception as detail:
log.info("Could not write log file for pod %s due to HTTPError %s",
detail, pod_obj['metadata']['name'])
pod_obj['metadata']['name'], detail)
if isinstance(log_string, text_type):
log_string = log_string.encode('utf8')