Fail gracefully when build path is not found.

reviewable/pr18780/r1
chouseknecht 8 years ago
parent a7e45db9e6
commit d63bc38481
No known key found for this signature in database
GPG Key ID: 78F1698C5705A81B

@ -259,6 +259,8 @@ class ImageManager(DockerBaseClass):
if not image or self.force:
if self.path:
# Build the image
if not os.path.isdir(self.path):
self.fail("Requested build path %s could not be found or you do not have access." % self.path)
image_name = self.name
if self.tag:
image_name = "%s:%s" % (self.name, self.tag)

Loading…
Cancel
Save