mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #43088 from gtmanfred/2017.7
allow docker util to be reloaded with reload_modules
This commit is contained in:
commit
1a531169fc
2 changed files with 6 additions and 5 deletions
|
@ -798,7 +798,7 @@ def get_client_args():
|
|||
|
||||
salt myminion docker.get_client_args
|
||||
'''
|
||||
return salt.utils.docker.get_client_args()
|
||||
return __utils__['docker.get_client_args']()
|
||||
|
||||
|
||||
def _get_create_kwargs(image,
|
||||
|
|
|
@ -136,10 +136,11 @@ class DockerTestCase(TestCase, LoaderModuleMockMixin):
|
|||
with patch.dict(docker_mod.__salt__,
|
||||
{'mine.send': mine_send,
|
||||
'container_resource.run': MagicMock(),
|
||||
'cp.cache_file': MagicMock(return_value=False),
|
||||
'docker.get_client_args': client_args_mock}):
|
||||
with patch.object(docker_mod, '_get_client', client):
|
||||
command('container', *args)
|
||||
'cp.cache_file': MagicMock(return_value=False)}):
|
||||
with patch.dict(docker_mod.__utils__,
|
||||
{'docker.get_client_args': client_args_mock}):
|
||||
with patch.object(docker_mod, '_get_client', client):
|
||||
command('container', *args)
|
||||
mine_send.assert_called_with('docker.ps', verbose=True, all=True,
|
||||
host=True)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue