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
This commit is contained in:
parent
1d6817e181
commit
ab942509e5
@ -740,7 +740,10 @@ class KollaWorker(object):
|
|||||||
self.dc = docker.APIClient(version='auto', **docker_kwargs)
|
self.dc = docker.APIClient(version='auto', **docker_kwargs)
|
||||||
except docker.errors.DockerException as e:
|
except docker.errors.DockerException as e:
|
||||||
self.dc = None
|
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
|
raise e
|
||||||
|
|
||||||
def _get_images_dir(self):
|
def _get_images_dir(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user