Do not try to commit a container that has not been created because layers are uptodate

This commit is contained in:
jpic
2021-04-24 13:12:18 +02:00
parent 63e610ca4f
commit 6a0b60d68a
+1 -1
View File
@@ -145,7 +145,7 @@ class Buildah(Target):
await self.parent.exec('umount', self.root / str(dst)[1:])
await self.parent.exec('buildah', 'umount', self.ctr)
if result.status == 'success':
if result.status == 'success' and self.ctr:
await self.commit()
if os.getenv('BUILDAH_PUSH'):
await self.image.push(target)