From 251dfc36720f1b4146b5c3b6e8b91e74d26212bc Mon Sep 17 00:00:00 2001 From: zhurong Date: Wed, 12 Dec 2018 10:47:13 +0800 Subject: [PATCH] Fix unittest no such option None in group DEFAULT error Change-Id: Ic3dc1870052bd1a0db844aa84cd8984dd64510e8 --- murano/common/auth_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/murano/common/auth_utils.py b/murano/common/auth_utils.py index 7bf032f4d..8e02f179a 100644 --- a/murano/common/auth_utils.py +++ b/murano/common/auth_utils.py @@ -124,7 +124,7 @@ def delete_trust(trust): def _get_config_option(conf_section, option_name, default=None): - if hasattr(cfg.CONF[conf_section], option_name): + if conf_section and hasattr(cfg.CONF[conf_section], option_name): return getattr(cfg.CONF[conf_section], option_name) return default