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