Skip to content

Commit

Permalink
fix (RSS): allow for Error status in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen committed Jul 24, 2023
1 parent 5e5b1af commit ae65c27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def main():
DIRAC.exit()

STATUS_TYPES = ["ReadAccess", "WriteAccess", "CheckAccess", "RemoveAccess"]
ALLOWED_STATUSES = ["Unknown", "InActive", "Banned", "Probing", "Degraded"]
ALLOWED_STATUSES = ["Unknown", "InActive", "Banned", "Probing", "Degraded", "Error"]

statusAllowedDict = {}
for statusType in STATUS_TYPES:
Expand Down
4 changes: 2 additions & 2 deletions src/DIRAC/DataManagementSystem/scripts/dirac_admin_ban_se.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ def main():
if seOptions["ReadAccess"] == "Banned":
gLogger.notice("Read access already banned", se)
resR["OK"] = True
elif not seOptions["ReadAccess"] in ["Active", "Degraded", "Probing"]:
elif not seOptions["ReadAccess"] in ["Active", "Degraded", "Probing", "Error"]:
gLogger.notice(
"Read option for %s is %s, instead of %s"
% (se, seOptions["ReadAccess"], ["Active", "Degraded", "Probing"])
% (se, seOptions["ReadAccess"], ["Active", "Degraded", "Probing", "Error"])
)
gLogger.notice("Try specifying the command switches")
else:
Expand Down

0 comments on commit ae65c27

Please sign in to comment.