mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
virsh: domain: Replace virJSONValueObjectCreate by virJSONValueObjectAdd
virJSONValueObjectAdd now works identically to virJSONValueObjectCreate when used with a NULL argument. Replace all callers. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
bd9dcd2b4b
commit
813ee9fb62
@ -9623,7 +9623,7 @@ cmdQemuMonitorCommandQMPWrap(vshControl *ctl,
|
||||
}
|
||||
}
|
||||
|
||||
if (virJSONValueObjectCreate(&command,
|
||||
if (virJSONValueObjectAdd(&command,
|
||||
"s:execute", commandname,
|
||||
"A:arguments", &arguments,
|
||||
NULL) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user