mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #50664 from garethgreenaway/50406_salt_ssh_returner_configuration
[2018.3] Fix to logic for configuring returners
This commit is contained in:
commit
15f9ae4412
1 changed files with 4 additions and 1 deletions
|
@ -137,7 +137,10 @@ 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))
|
||||
if default_cfg_key in cfg:
|
||||
return cfg[default_cfg_key]
|
||||
else:
|
||||
return c_cfg.get(attr_name)
|
||||
else:
|
||||
return c_cfg.get(attr_name, cfg(default_cfg_key))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue