mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
qemu: hotplug: Use 'tlsAlias' to see whether to detach the disk
Using 'haveTLS' to do this is pointless if the alias is not set. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
dbb4ff0919
commit
5e8218fad7
@ -3958,7 +3958,7 @@ qemuDomainRemoveDiskDevice(virQEMUDriverPtr driver,
|
||||
!virStoragePRDefIsManaged(disk->src->pr))
|
||||
ignore_value(qemuMonitorDelObject(priv->mon, disk->src->pr->mgralias));
|
||||
|
||||
if (disk->src->haveTLS)
|
||||
if (disk->src->tlsAlias)
|
||||
ignore_value(qemuMonitorDelObject(priv->mon, disk->src->tlsAlias));
|
||||
|
||||
if (prManaged && !prUsed)
|
||||
|
Loading…
Reference in New Issue
Block a user