Browse Source

Merge "build: exit if there is no Docker connection"

Zuul 2 months ago
parent
commit
c6625e9aed
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      kolla/image/build.py

+ 3
- 1
kolla/image/build.py View File

@@ -744,7 +744,9 @@ class KollaWorker(object):
744 744
                     or conf.save_dependency
745 745
                     or conf.list_images
746 746
                     or conf.list_dependencies):
747
-                raise e
747
+                LOG.error("Unable to connect to Docker, exiting")
748
+                LOG.info("Exception caught: {0}".format(e))
749
+                sys.exit(1)
748 750
 
749 751
     def _get_images_dir(self):
750 752
         possible_paths = (

Loading…
Cancel
Save