Skip to content

Commit ae65c27

Browse files
committed
fix (RSS): allow for Error status in scripts
1 parent 5e5b1af commit ae65c27

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/DIRAC/DataManagementSystem/scripts/dirac_admin_allow_se.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def main():
9898
DIRAC.exit()
9999

100100
STATUS_TYPES = ["ReadAccess", "WriteAccess", "CheckAccess", "RemoveAccess"]
101-
ALLOWED_STATUSES = ["Unknown", "InActive", "Banned", "Probing", "Degraded"]
101+
ALLOWED_STATUSES = ["Unknown", "InActive", "Banned", "Probing", "Degraded", "Error"]
102102

103103
statusAllowedDict = {}
104104
for statusType in STATUS_TYPES:

src/DIRAC/DataManagementSystem/scripts/dirac_admin_ban_se.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ def main():
115115
if seOptions["ReadAccess"] == "Banned":
116116
gLogger.notice("Read access already banned", se)
117117
resR["OK"] = True
118-
elif not seOptions["ReadAccess"] in ["Active", "Degraded", "Probing"]:
118+
elif not seOptions["ReadAccess"] in ["Active", "Degraded", "Probing", "Error"]:
119119
gLogger.notice(
120120
"Read option for %s is %s, instead of %s"
121-
% (se, seOptions["ReadAccess"], ["Active", "Degraded", "Probing"])
121+
% (se, seOptions["ReadAccess"], ["Active", "Degraded", "Probing", "Error"])
122122
)
123123
gLogger.notice("Try specifying the command switches")
124124
else:

0 commit comments

Comments
 (0)