Skip to content

Commit

Permalink
Review changes: conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobbins228 authored and openshift-merge-bot[bot] committed Mar 28, 2024
1 parent 62519b2 commit f1a8622
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/codeflare_sdk/cluster/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,14 +515,14 @@ def from_k8_cluster_object(
else:
local_interactive = False
if "codeflare.dev/oauth" in rc["metadata"]["annotations"]:
if rc["metadata"]["annotations"]["codeflare.dev/oauth"] == "True":
openshift_oauth = True
openshift_oauth = (
rc["metadata"]["annotations"]["codeflare.dev/oauth"] == "True"
)
else:
for container in rc["spec"]["headGroupSpec"]["template"]["spec"][
"containers"
]:
if "oauth-proxy" in container["name"]:
openshift_oauth = True
openshift_oauth = "oauth-proxy" in container["name"]
machine_types = (
rc["metadata"]["labels"]["orderedinstance"].split("_")
if "orderedinstance" in rc["metadata"]["labels"]
Expand Down

0 comments on commit f1a8622

Please sign in to comment.