Merge pull request #45149 from golmaal/develop

#45147 - postgresql returner fails to connect to db when salt-ssh exe runs a command
This commit is contained in:
Nicole Thomas 2018-01-04 08:59:52 -05:00 committed by GitHub
commit 981b2cc0f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,7 @@ def _fetch_option(cfg, ret_config, virtualname, attr_name):
if not ret_config:
# Using the default configuration key
if isinstance(cfg, dict):
return c_cfg.get(attr_name, cfg.get(default_cfg_key))
return c_cfg.get(default_cfg_key, cfg.get(attr_name))
else:
return c_cfg.get(attr_name, cfg(default_cfg_key))