mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
ch_driver: fix condition in virCHDomainRemoveInactive()
Rectify the condition to remove a domain only if it is not persistent. Signed-off-by: Purna Pavan Chandra Aekkaladevi <paekkaladevi@linux.microsoft.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
19dc73d16e
commit
18f2bf0a43
@ -36,7 +36,7 @@ void
|
||||
virCHDomainRemoveInactive(virCHDriver *driver,
|
||||
virDomainObj *vm)
|
||||
{
|
||||
if (vm->persistent) {
|
||||
if (!vm->persistent) {
|
||||
virDomainObjListRemove(driver->domains, vm);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user