We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c31ddb commit b84c21aCopy full SHA for b84c21a
generate-status/write_status.py
@@ -21,6 +21,10 @@
21
with open(f"../../{subject['directory']}/engagement.json", "r") as read_file:
22
engagement = json.load(read_file)
23
24
+if "current_state" not in subject["anarchy_subject"]["spec"]["vars"] or "desired_state" not in subject["anarchy_subject"]["spec"]["vars"]:
25
+ print(f"Skipping {subject['directory']} - state information not found in the Anarchy subject")
26
+ return
27
+
28
current_state = subject["anarchy_subject"]["spec"]["vars"]["current_state"]
29
desired_state = subject["anarchy_subject"]["spec"]["vars"]["desired_state"]
30
0 commit comments