]> xenbits.xensource.com Git - libvirt.git/commit
qemuMonitorJSONMigrate: Extract flags prior to constructing command
authorPeter Krempa <pkrempa@redhat.com>
Tue, 30 Nov 2021 15:12:00 +0000 (16:12 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 7 Dec 2021 08:00:39 +0000 (09:00 +0100)
commit32e44f213c1985fc162c5fe579451d416da8e24a
treef5cd64978be131d16b2766991b7476be5a4e1c70
parentbd5309fd580443d307e82d658ee3af501999adb4
qemuMonitorJSONMigrate: Extract flags prior to constructing command

The migration API takes specific flags which are then converted to
boolean parameters for the command. Extract the flag into helper
variables rather than using ternary operators while constructing the
command itself.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_monitor_json.c