Browse Source

Fix unittest no such option None in group DEFAULT error

Change-Id: Ic3dc1870052bd1a0db844aa84cd8984dd64510e8
zhurong 4 months ago
parent
commit
251dfc3672
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      murano/common/auth_utils.py

+ 1
- 1
murano/common/auth_utils.py View File

@@ -124,7 +124,7 @@ def delete_trust(trust):
124 124
 
125 125
 
126 126
 def _get_config_option(conf_section, option_name, default=None):
127
-    if hasattr(cfg.CONF[conf_section], option_name):
127
+    if conf_section and hasattr(cfg.CONF[conf_section], option_name):
128 128
         return getattr(cfg.CONF[conf_section], option_name)
129 129
     return default
130 130
 

Loading…
Cancel
Save