Fix kubernetes runner on py3

instance_id is a string, so this can't be compared to an integer
on python 3. Broken in ac1b25ed4c,
prior to that the comparison was `len(self._galaxy_instance_id) > 0:`
This commit is contained in:
mvdbeek
2019-07-10 13:55:49 +02:00
parent 34bde631f4
commit 8fb5936f92
+1 -1
View File
@@ -47,7 +47,7 @@ def produce_unique_k8s_job_name(app_prefix=None, instance_id=None, job_id=None):
if app_prefix:
job_name += "%s-" % app_prefix
if instance_id and instance_id > 0:
if instance_id and len(instance_id) > 0:
job_name += "%s-" % instance_id
return job_name + job_id