File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 28
28
else :
29
29
existing_status = False
30
30
31
- if "current_state" not in subject ["ocp_anarchy_subject" ]["spec" ]["vars" ] or "desired_state" not in subject [ "ocp_anarchy_subject" ][ "spec" ][ "vars" ] :
31
+ if "current_state" not in subject ["ocp_anarchy_subject" ]["spec" ]["vars" ]:
32
32
print (f"Skipping { subject ['directory' ]} - state information not found in the Anarchy subject" )
33
33
return
34
34
40
40
return
41
41
42
42
current_state = subject ["ocp_anarchy_subject" ]["spec" ]["vars" ]["current_state" ]
43
- desired_state = subject ["ocp_anarchy_subject" ]["spec" ]["vars" ]["desired_state" ]
43
+ desired_state = subject ["ocp_anarchy_subject" ]["spec" ]["vars" ]["desired_state" ] if "desired_state" in subject [ "ocp_anarchy_subject" ][ "spec" ][ "vars" ] else None
44
44
45
45
region = engagement ["engagement_region" ].lower () if "engagement_region" in engagement else "na"
46
46
region_url = f"{ region } -1"
61
61
if current_state == "provisioning" :
62
62
ocp_subsystem ["status" ] = "yellow"
63
63
ocp_subsystem ["info" ] = "Building Cluster. This normally takes about ~45 min from launch. Please check back later for an updated status."
64
- elif current_state == desired_state :
64
+ elif current_state == desired_state or ( current_state == "started" and desired_state is None ) :
65
65
ocp_subsystem ["status" ] = "green"
66
66
ocp_subsystem ["info" ] = "Working as expected"
67
67
else :
You can’t perform that action at this time.
0 commit comments