mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Work with a copy of default opts dictionaries
This commit is contained in:
parent
b7c24811e5
commit
fad5bec936
@ -1781,7 +1781,7 @@ def minion_config(path,
|
||||
minion_opts = salt.config.minion_config('/etc/salt/minion')
|
||||
'''
|
||||
if defaults is None:
|
||||
defaults = DEFAULT_MINION_OPTS
|
||||
defaults = DEFAULT_MINION_OPTS.copy()
|
||||
|
||||
if path is not None and path.endswith('proxy'):
|
||||
defaults.update(DEFAULT_PROXY_MINION_OPTS)
|
||||
@ -3314,7 +3314,7 @@ def spm_config(path):
|
||||
.. versionadded:: 2015.8.0
|
||||
'''
|
||||
# Let's grab a copy of salt's master default opts
|
||||
defaults = DEFAULT_MASTER_OPTS
|
||||
defaults = DEFAULT_MASTER_OPTS.copy()
|
||||
# Let's override them with spm's required defaults
|
||||
defaults.update(DEFAULT_SPM_OPTS)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user