File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/codeflare_sdk/cluster Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -515,14 +515,14 @@ def from_k8_cluster_object(
515
515
else :
516
516
local_interactive = False
517
517
if "codeflare.dev/oauth" in rc ["metadata" ]["annotations" ]:
518
- if rc ["metadata" ]["annotations" ]["codeflare.dev/oauth" ] == "True" :
519
- openshift_oauth = True
518
+ openshift_oauth = (
519
+ rc ["metadata" ]["annotations" ]["codeflare.dev/oauth" ] == "True"
520
+ )
520
521
else :
521
522
for container in rc ["spec" ]["headGroupSpec" ]["template" ]["spec" ][
522
523
"containers"
523
524
]:
524
- if "oauth-proxy" in container ["name" ]:
525
- openshift_oauth = True
525
+ openshift_oauth = "oauth-proxy" in container ["name" ]
526
526
machine_types = (
527
527
rc ["metadata" ]["labels" ]["orderedinstance" ].split ("_" )
528
528
if "orderedinstance" in rc ["metadata" ]["labels" ]
You can’t perform that action at this time.
0 commit comments