Fix buildah clean

This commit is contained in:
jpic 2020-02-15 17:01:52 +01:00
parent c96d2494d2
commit 7806e217ef

View File

@ -136,6 +136,7 @@ class Buildah(Localhost):
cli.exit_code = await proc.wait() cli.exit_code = await proc.wait()
async def clean(self, *args, **kwargs): async def clean(self, *args, **kwargs):
#await self.umounts() if self.mnt:
#await self.umount() await self.exec('buildah', 'umount', self.ctr, buildah=False)
await self.exec('buildah', 'rm', self.ctr, raises=False, buildah=False) if self.ctr:
await self.exec('buildah', 'rm', self.ctr, buildah=False)