commit | e5ecec7bad7b679aa11ab788424bc0e1705be15b | [log] [tgz] |
---|---|---|
author | Igor Mammedov <imammedo@redhat.com> | Mon Mar 25 15:48:46 2013 +0100 |
committer | Luiz Capitulino <lcapitulino@redhat.com> | Mon Mar 25 16:21:33 2013 -0400 |
tree | 6feafece3e0b27009226bf3c58a983c57cc0f563 | |
parent | 28c4fa32bd76268320d44db5d82e0d18fbc7c864 [diff] |
qmp: fix handling of boolean values in qmp-shell qmp-shell converts only integer arguments and the rest is assumed to be strings which are faithfully sent as quoted strings by json. But QEMU refuses to accept qmp command with boolean argument whose value is escaped as string. Fix it by special-casing true/false keywords and store value as corresponding boolean. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>