Skip to content

Commit

Permalink
Update message during container_rm when docker executable is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
cgalibern committed Feb 11, 2021
1 parent 39c5834 commit b5d6280
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opensvc/drivers/resource/container/docker/__init__.py
Expand Up @@ -536,6 +536,8 @@ def container_rm(self):
"""
if not self.lib.docker_running():
return
if self.lib.docker_cmd is None:
raise ex.Error("docker executable not found")
cmd = self.lib.docker_cmd + ['rm', self.container_name]
out, err, ret = justcall(cmd)
if ret != 0:
Expand Down

0 comments on commit b5d6280

Please sign in to comment.