Merge "replaced function with set literal"

This commit is contained in:
Jenkins 2017-04-06 03:19:26 +00:00 committed by Gerrit Code Review
commit 0f6819f442
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):