From bc4144302dd156acaa41686cb784d03cfd745602 Mon Sep 17 00:00:00 2001 From: "the.bling" Date: Tue, 4 Apr 2017 13:55:17 +0530 Subject: [PATCH] replaced function with set literal Change-Id: Ia4484ff272369b29a306a3db01491daf9f79ce71 --- meteos/api/openstack/wsgi.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/meteos/api/openstack/wsgi.py b/meteos/api/openstack/wsgi.py index d00635e..107bdf3 100644 --- a/meteos/api/openstack/wsgi.py +++ b/meteos/api/openstack/wsgi.py @@ -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):