mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix for mine to merge configuration on update.
This fix was previously applied to 2015.5. It fixes #30722
This commit is contained in:
parent
3cb7a9ee54
commit
99c7c12aba
2 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ def update(clear=False):
|
|||
|
||||
salt '*' mine.update
|
||||
'''
|
||||
m_data = __salt__['config.option']('mine_functions', {})
|
||||
m_data = __salt__['config.merge']('mine_functions', {})
|
||||
data = {}
|
||||
for func in m_data:
|
||||
try:
|
||||
|
|
|
@ -39,7 +39,7 @@ class MineTestCase(TestCase):
|
|||
Test for Execute the configured functions
|
||||
'''
|
||||
with patch.dict(mine.__salt__,
|
||||
{'config.option': MagicMock(return_value={'A': 'B'}),
|
||||
{'config.merge': MagicMock(return_value={'A': 'B'}),
|
||||
'data.update': MagicMock(return_value='A'),
|
||||
'A': MagicMock(return_value='B')}):
|
||||
with patch.dict(mine.__opts__, {'file_client': 'local',
|
||||
|
|
Loading…
Add table
Reference in a new issue