mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Move setting of encobjAdded for qemuDomainAttachSCSIDisk
A post push realization that the boolean should be set inside the condition
This commit is contained in:
parent
c144f14c12
commit
4f5debbeb4
@ -651,8 +651,8 @@ qemuDomainAttachSCSIDisk(virConnectPtr conn,
|
|||||||
encobjProps = NULL; /* qemuMonitorAddObject consumes */
|
encobjProps = NULL; /* qemuMonitorAddObject consumes */
|
||||||
if (rv < 0)
|
if (rv < 0)
|
||||||
goto exit_monitor;
|
goto exit_monitor;
|
||||||
|
encobjAdded = true;
|
||||||
}
|
}
|
||||||
encobjAdded = true;
|
|
||||||
|
|
||||||
if (qemuMonitorAddDrive(priv->mon, drivestr) < 0)
|
if (qemuMonitorAddDrive(priv->mon, drivestr) < 0)
|
||||||
goto exit_monitor;
|
goto exit_monitor;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user