mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +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
@ -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…
Reference in New Issue
Block a user