mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +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
1 changed files with 3 additions and 5 deletions
|
@ -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…
Add table
Reference in a new issue