Merge pull request #24385 from jeanpralo/Fix-binds-dockerio.start

Fix salt.modules.dockerio.start method
This commit is contained in:
Justin Findlay 2015-06-04 09:00:22 -06:00
commit a904055d28

View File

@ -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()