Merge "replaced function with set literal"
This commit is contained in:
commit
0f6819f442
|
@ -1180,13 +1180,11 @@ class AdminActionsMixin(object):
|
||||||
}
|
}
|
||||||
|
|
||||||
valid_statuses = {
|
valid_statuses = {
|
||||||
'status': set([
|
'status': {constants.STATUS_CREATING,
|
||||||
constants.STATUS_CREATING,
|
constants.STATUS_AVAILABLE,
|
||||||
constants.STATUS_AVAILABLE,
|
constants.STATUS_DELETING,
|
||||||
constants.STATUS_DELETING,
|
constants.STATUS_ERROR,
|
||||||
constants.STATUS_ERROR,
|
constants.STATUS_ERROR_DELETING},
|
||||||
constants.STATUS_ERROR_DELETING,
|
|
||||||
]),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def _update(self, *args, **kwargs):
|
def _update(self, *args, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue