Use set literal to create a set

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
This commit is contained in:
Chenxiong Qi
2019-08-15 21:14:02 +08:00
parent dbced8668b
commit e6aa47e02a
21 changed files with 192 additions and 187 deletions

View File

@@ -57,7 +57,7 @@ class BaseConfiguration(object):
MODULES_ALLOW_REPOSITORY = False
MODULES_ALLOW_SCRATCH = False
ALLOWED_GROUPS = set(["packager"])
ALLOWED_GROUPS = {"packager"}
ALLOWED_GROUPS_TO_IMPORT_MODULE = set()
@@ -118,7 +118,7 @@ class TestConfiguration(BaseConfiguration):
AUTH_METHOD = "oidc"
RESOLVER = "db"
ALLOWED_GROUPS_TO_IMPORT_MODULE = set(["mbs-import-module"])
ALLOWED_GROUPS_TO_IMPORT_MODULE = {"mbs-import-module"}
# Greenwave configuration
GREENWAVE_URL = "https://greenwave.example.local/api/v1.0/"