mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #24898 from rallytime/bp-24845
Back-port #24845 to 2015.5
This commit is contained in:
commit
d4dd8d288d
@ -1852,7 +1852,7 @@ def load(imagepath):
|
|||||||
if os.path.isfile(imagepath):
|
if os.path.isfile(imagepath):
|
||||||
try:
|
try:
|
||||||
dockercmd = ['docker', 'load', '-i', imagepath]
|
dockercmd = ['docker', 'load', '-i', imagepath]
|
||||||
ret = __salt__['cmd.run'](dockercmd)
|
ret = __salt__['cmd.run'](dockercmd, python_shell=False)
|
||||||
if ((isinstance(ret, dict) and
|
if ((isinstance(ret, dict) and
|
||||||
('retcode' in ret) and
|
('retcode' in ret) and
|
||||||
(ret['retcode'] != 0))):
|
(ret['retcode'] != 0))):
|
||||||
|
Loading…
Reference in New Issue
Block a user