Merge "Can not recover a clusetr in warning status by senlin-dashboard"

This commit is contained in:
Zuul 2018-01-15 07:15:46 +00:00 committed by Gerrit Code Review
commit b76086d252
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class RecoverCluster(tables.BatchAction):
def allowed(self, request, datum):
if datum:
return datum.status == "ERROR"
return datum.status == "ERROR" or datum.status == "WARNING"
else:
return True