mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
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:
commit
981b2cc0f2
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user