do not delete volumes from images pool

This commit is contained in:
ge 2024-05-17 00:04:27 +03:00
parent baa511f678
commit 197e272f3e

View File

@ -788,6 +788,12 @@ class Instance:
disk.source,
)
continue
if volume.storagePoolLookupByVolume().name() == 'images':
log.info(
'Volume %s skipped because it is from images pool',
volume.path(),
)
continue
log.info('Delete volume: %s', volume.path())
volume.delete()
log.info('Undefine instance')