container: Don't remove qcow2 image when terminating VM

- Terminating means just stopping the VM. Not destroying the storage disk.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2025-03-24 16:30:24 -07:00
parent 1489151b4e
commit 0df112a006
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -1395,8 +1395,6 @@ class VM(Machine):
except subprocess.CalledProcessError:
pass
self._destroy_qcow_image()
def destroy(self) -> None:
"""Remove all traces of the VM from the host."""
logger.info('Running `virsh undefine %s`', self.machine_name)