mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #24385 from jeanpralo/Fix-binds-dockerio.start
Fix salt.modules.dockerio.start method
This commit is contained in:
commit
a904055d28
@ -873,11 +873,9 @@ def start(container,
|
||||
|
||||
salt '*' docker.start <container id>
|
||||
'''
|
||||
if not binds:
|
||||
binds = {}
|
||||
|
||||
if not isinstance(binds, dict):
|
||||
raise SaltInvocationError('binds must be formatted as a dictionary')
|
||||
if binds:
|
||||
if not isinstance(binds, dict):
|
||||
raise SaltInvocationError('binds must be formatted as a dictionary')
|
||||
|
||||
client = _get_client()
|
||||
status = base_status.copy()
|
||||
|
Loading…
Reference in New Issue
Block a user