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 956c049 commit ac4417eCopy full SHA for ac4417e
circuit_maintenance_parser/output.py
@@ -197,7 +197,7 @@ def validate_empty_strings(cls, value):
197
def validate_empty_circuits(cls, value, values):
198
"""Validate non-cancel notifications have a populated circuit list."""
199
values = values.data
200
- if len(value) < 1 and str(values["status"]) in ("CANCELLED", "COMPLETED"):
+ if len(value) < 1 and str(values["status"]) not in ("Status.CANCELLED", "Status.COMPLETED"):
201
raise ValueError("At least one circuit has to be included in the maintenance")
202
return value
203
0 commit comments