From ab942509e50e4104c5f485ffa6106a8732e094d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Andr=C3=A9?= Date: Wed, 30 Jan 2019 18:47:22 +0100 Subject: [PATCH] Allow running more commands dockerless The `--save-dependency`, `--list-images`, and `--list-dependencies` options to the kolla-build commands do not actually require docker daemon running. This commit stop kolla-build from complaining when it is called with one of the above options without docker daemon started. Change-Id: I966587236aca363316db8abbfc04763655b4b68f --- kolla/image/build.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kolla/image/build.py b/kolla/image/build.py index 4dd3daec71..8e136b402b 100755 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -740,7 +740,10 @@ class KollaWorker(object): self.dc = docker.APIClient(version='auto', **docker_kwargs) except docker.errors.DockerException as e: self.dc = None - if not conf.template_only: + if not (conf.template_only + or conf.save_dependency + or conf.list_images + or conf.list_dependencies): raise e def _get_images_dir(self):