qemu-storage-daemon: Remove QemuOpts from --object parser
commit8db1efd3f30749d471a60e56dabc131c03e73282
authorKevin Wolf <kwolf@redhat.com>
Wed, 7 Oct 2020 16:49:03 +0000 (7 18:49 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 15 Oct 2020 14:06:27 +0000 (15 16:06 +0200)
tree7bba600767ac9d8243cc9dc0ac42e4338e78f3b7
parentc9ac1458430e4794adc8f0418d263befc3917886
qemu-storage-daemon: Remove QemuOpts from --object parser

The command line parser for --object parses the input twice: Once into
QemuOpts just for detecting help options, and then again into a QDict
using the keyval parser for actually creating the object.

Now that the keyval parser can also detect help options, we can simplify
this and remove the QemuOpts part.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20201007164903.282198-5-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
storage-daemon/qemu-storage-daemon.c