diff --git a/lib/galaxy/jobs/runners/kubernetes.py b/lib/galaxy/jobs/runners/kubernetes.py index d7daf9e86da3..62518ae14acf 100644 --- a/lib/galaxy/jobs/runners/kubernetes.py +++ b/lib/galaxy/jobs/runners/kubernetes.py @@ -435,7 +435,7 @@ def __get_k8s_service_spec(self, ajs): def __get_k8s_ingress_rules_spec(self, ajs, entry_points): """This represents the template for the "rules" portion of the Ingress spec.""" - if "v1beta1" in self.runner_params.get("k8s_ingress_api_version"): + if "v1beta1" in self.runner_params["k8s_ingress_api_version"]: rules_spec = [ { "host": ep["domain"],