Merge pull request #24898 from rallytime/bp-24845

Back-port #24845 to 2015.5
This commit is contained in:
Justin Findlay 2015-06-24 09:06:09 -06:00
commit d4dd8d288d

View File

@ -1852,7 +1852,7 @@ def load(imagepath):
if os.path.isfile(imagepath):
try:
dockercmd = ['docker', 'load', '-i', imagepath]
ret = __salt__['cmd.run'](dockercmd)
ret = __salt__['cmd.run'](dockercmd, python_shell=False)
if ((isinstance(ret, dict) and
('retcode' in ret) and
(ret['retcode'] != 0))):