mirror of https://gitee.com/openkylin/libvirt.git
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