Re: [PATCH] ch_driver: fix condition in virCHDomainRemoveInactive()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/29/24 13:38, Purna Pavan Chandra Aekkaladevi wrote:
> Rectify the condition to remove a domain only if it is not persistent.
> 
> Signed-off-by: Purna Pavan Chandra Aekkaladevi <paekkaladevi@xxxxxxxxxxxxxxxxxxx>
> ---
>  src/ch/ch_domain.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/ch/ch_domain.c b/src/ch/ch_domain.c
> index c0d6c75b1d..2f3fae6758 100644
> --- a/src/ch/ch_domain.c
> +++ b/src/ch/ch_domain.c
> @@ -36,7 +36,7 @@ void
>  virCHDomainRemoveInactive(virCHDriver *driver,
>                            virDomainObj *vm)
>  {
> -    if (vm->persistent) {
> +    if (!vm->persistent) {
>          virDomainObjListRemove(driver->domains, vm);
>      }
>  }

Ooops, yes.

Reviewed-by: Michal Privoznik <mprivozn@xxxxxxxxxx>

and merged. Congratulations on your first libvirt contribution!

Michal
_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux