mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu: Move setting of obj bools for qemuDomainAttachVirtioDiskDevice
A post push realization that the setting of the boolean needed to be inside the if condition.
This commit is contained in:
parent
f1bbf57cad
commit
c144f14c12
@ -382,8 +382,8 @@ qemuDomainAttachVirtioDiskDevice(virConnectPtr conn,
|
||||
secobjProps = NULL; /* qemuMonitorAddObject consumes */
|
||||
if (rv < 0)
|
||||
goto exit_monitor;
|
||||
secobjAdded = true;
|
||||
}
|
||||
secobjAdded = true;
|
||||
|
||||
if (encobjProps) {
|
||||
rv = qemuMonitorAddObject(priv->mon, "secret", encinfo->s.aes.alias,
|
||||
@ -391,8 +391,8 @@ qemuDomainAttachVirtioDiskDevice(virConnectPtr conn,
|
||||
encobjProps = NULL; /* qemuMonitorAddObject consumes */
|
||||
if (rv < 0)
|
||||
goto exit_monitor;
|
||||
encobjAdded = true;
|
||||
}
|
||||
encobjAdded = true;
|
||||
|
||||
if (qemuMonitorAddDrive(priv->mon, drivestr) < 0)
|
||||
goto exit_monitor;
|
||||
|
Loading…
Reference in New Issue
Block a user