libvirt/src/qemu
Ján Tomko 9e48b02840 qemu: agent: use GetArray to remove a check
The error check for ValueObjectGet("return") is redundant,
qemuAgentCommand already checked for us that the reply contains
a "return" object.

It does not guarantee, that it is an array.

Use virJSONValueObjectGetArray that combines getting the object
with checking for its type and return the more helpful of
the two error messages.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
2020-10-08 11:16:08 +02:00
..
EVENTHANDLERS.txt
libvirt_qemu_probes.d
libvirtd_qemu.aug
meson.build
MIGRATION.txt
qemu_agent.c qemu: agent: use GetArray to remove a check 2020-10-08 11:16:08 +02:00
qemu_agent.h
qemu_alias.c
qemu_alias.h
qemu_backup.c qemu: backup: Write TLS cert and secret object aliases into status XML 2020-09-15 15:25:22 +02:00
qemu_backup.h
qemu_block.c qemu: use g_new0 2020-10-05 16:44:06 +02:00
qemu_block.h qemuBlockStorageSourceAttachData: remove 'storageNodeNameCopy' 2020-09-15 15:20:23 +02:00
qemu_blockjob.c
qemu_blockjob.h
qemu_capabilities.c qemu: capabilities: use g_new0 2020-10-05 16:44:06 +02:00
qemu_capabilities.h virQEMUCapsFlagsString: Remove unused function 2020-10-05 12:26:22 +02:00
qemu_capspriv.h qemu: Track default-ram-id machine attribute 2020-10-01 12:04:48 +02:00
qemu_cgroup.c qemu: use g_new0 2020-10-05 16:44:06 +02:00
qemu_cgroup.h
qemu_checkpoint.c
qemu_checkpoint.h
qemu_command.c qemu: command: use g_new0 2020-10-05 16:44:06 +02:00
qemu_command.h qemuBuildMemoryBackendProps: Fix const correctness 2020-10-01 12:03:57 +02:00
qemu_conf.c qemu: use g_new0 2020-10-05 16:44:06 +02:00
qemu_conf.h
qemu_dbus.c
qemu_dbus.h
qemu_domain_address.c qemu: use g_new0 2020-10-05 16:44:06 +02:00
qemu_domain_address.h
qemu_domain.c cpu: Wire in XML validation 2020-10-07 11:26:27 +02:00
qemu_domain.h qemu: Taint cpu host-passthrough only after migration 2020-10-05 10:08:26 -04:00
qemu_domainjob.c
qemu_domainjob.h
qemu_driver.c cpu: Wire in XML validation 2020-10-07 11:26:27 +02:00
qemu_driver.h
qemu_extdevice.c
qemu_extdevice.h qemu: pass virDomainObjPtr to qemuExtDevicesSetupCgroup 2020-03-04 12:08:50 +01:00
qemu_firmware.c qemu: firmware: use g_new0 2020-10-05 16:44:06 +02:00
qemu_firmware.h
qemu_hostdev.c
qemu_hostdev.h
qemu_hotplug.c Fix incorrect g_new0 conversions 2020-10-06 14:26:43 +02:00
qemu_hotplug.h src: add G_GNUC_NO_INLINE annotations for mocked symbols 2020-08-04 17:58:08 +01:00
qemu_interface.c
qemu_interface.h
qemu_interop_config.c
qemu_interop_config.h
qemu_migration_cookie.c cpu: Wire in XML validation 2020-10-07 11:26:27 +02:00
qemu_migration_cookie.h qemu: migration: Rename qemuMigrationEatCookie to qemuMigrationCookieParse 2020-10-01 10:01:05 +02:00
qemu_migration_params.c virBitmapNew: Don't check return value 2020-10-05 15:38:47 +02:00
qemu_migration_params.h
qemu_migration_paramspriv.h
qemu_migration.c qemu: use g_new0 2020-10-05 16:44:06 +02:00
qemu_migration.h
qemu_monitor_json.c qemu: monitor: json: use g_new0 2020-10-05 16:44:06 +02:00
qemu_monitor_json.h
qemu_monitor_priv.h
qemu_monitor_text.c
qemu_monitor_text.h
qemu_monitor.c qemu: use g_new0 2020-10-05 16:44:06 +02:00
qemu_monitor.h qemu: Track default-ram-id machine attribute 2020-10-01 12:04:48 +02:00
qemu_namespace.c qemu: use g_new0 2020-10-05 16:44:06 +02:00
qemu_namespace.h
qemu_process.c qemu: process: use g_new0 2020-10-05 16:44:06 +02:00
qemu_process.h
qemu_processpriv.h
qemu_qapi.c src: fix misc spelling errors reported by codespell 2020-10-05 10:28:41 +01:00
qemu_qapi.h
qemu_saveimage.c qemu: use g_new0 2020-10-05 16:44:06 +02:00
qemu_saveimage.h
qemu_security.c
qemu_security.h
qemu_shim.c
qemu_slirp.c virBitmapNew: Don't check return value 2020-10-05 15:38:47 +02:00
qemu_slirp.h
qemu_snapshot.c virBitmapNew: Don't check return value 2020-10-05 15:38:47 +02:00
qemu_snapshot.h qemu: snapshot: Introduce helpers for creating overlays on <transient/> disks 2020-10-01 09:55:02 +02:00
qemu_tpm.c
qemu_tpm.h
qemu_validate.c qemu: validate: Allow <transient/> disks 2020-10-01 09:55:02 +02:00
qemu_validate.h
qemu_vhost_user_gpu.c
qemu_vhost_user_gpu.h
qemu_vhost_user.c qemu: use g_new0 2020-10-05 16:44:06 +02:00
qemu_vhost_user.h
qemu_virtiofs.c
qemu_virtiofs.h
qemu.conf
test_libvirtd_qemu.aug.in
THREADS.txt
virtqemud.init.in
virtqemud.service.in
virtqemud.sysconf