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 
> <[email protected]>
> ---
>  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 <[email protected]>

and merged. Congratulations on your first libvirt contribution!

Michal
_______________________________________________
Devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to