From b3d9f9416cf0919a631b6515285013d8ff2cd04f Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Jan 14 2021 22:12:15 +0000 Subject: Dev mode: use _local_conf_dir for subject types Without this, in dev mode we try to load subject types from /etc/greenwave/subject_types - which may well not exist. Using the ones in the local config dir is a better choice. Signed-off-by: Adam Williamson --- diff --git a/greenwave/config.py b/greenwave/config.py index 496e274..e09077e 100644 --- a/greenwave/config.py +++ b/greenwave/config.py @@ -69,6 +69,7 @@ class DevelopmentConfig(Config): WAIVERDB_API_URL = 'http://localhost:5004/api/v1.0' GREENWAVE_API_URL = 'http://localhost:5005/api/v1.0' POLICIES_DIR = _local_conf_dir('policies') + SUBJECT_TYPES_DIR = _local_conf_dir('subject_types') REMOTE_RULE_POLICIES = { 'brew-build-group': ( 'https://git.example.com/devops/greenwave-policies/side-tags/raw/master/{pkg_namespace}'