Commit 8bae0785 authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Neil Williams

raise an infra error when docker is not installed

Change-Id: Iae71dfdc3372348e1c6a11bb4164d6988bf4273f
parent 7306a5c6
......@@ -54,6 +54,8 @@ class DockerAction(DeployAction):
self.logger.debug("docker client, installed at version: %s", out)
except subprocess.CalledProcessError as exc:
raise InfrastructureError("Unable to call '%s': %s" % (exc.cmd, exc.output))
except OSError:
raise InfrastructureError("Command 'docker' does not exist")
# Add the lava_test_results_dir to the right namespace
if self.test_needs_deployment(self.parameters):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment