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.
2 parents ac4417e + 8f3d316 commit 7162407Copy full SHA for 7162407
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"]) not in ("Status.CANCELLED", "Status.COMPLETED"):
+ if len(value) < 1 and 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