replaced function with set literal

Change-Id: Ia4484ff272369b29a306a3db01491daf9f79ce71
This commit is contained in:
the.bling 2017-04-04 13:55:17 +05:30
parent c034c74cf8
commit bc4144302d
1 changed files with 5 additions and 7 deletions

View File

@ -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):