Better cleanup for local build add-ons (#161)

* Better cleanup for local build add-ons

* fix lint
This commit is contained in:
Pascal Vizeli 2017-08-20 23:02:58 +02:00 committed by GitHub
parent cb7710c23f
commit dfda7dc748

View File

@ -203,7 +203,9 @@ class DockerAddon(DockerBase):
_LOGGER.info("Start build %s on %s", build_tag, build_dir)
image = self.dock.images.build(
path=str(build_dir), tag=build_tag, pull=True)
path=str(build_dir), tag=build_tag, pull=True,
forcerm=True
)
image.tag(self.image, tag='latest')
self.process_metadata(image.attrs, force=True)