qemu-e2k/scripts/qmp
Daniel P. Berrange f880cd6b6f qmp: allow setting properties to empty string in qmp-shell
The qmp-shell property parser currently rejects attempts to
set string properties to the empty string eg

  (QEMU) migrate-set-parameters  tls-hostname=
  Error while parsing command line: Expected a key=value pair, got 'tls-hostname='
command format: <command-name>  [arg-name1=arg1] ... [arg-nameN=argN]

This is caused by checking the wrong condition after splitting
the parameter on '='. The "partition" method will return "" for
the separator field, if the seperator was not present, so that
is the correct thing to check for malformed syntax.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <20170302122429.7737-1-berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2017-03-16 07:13:01 +01:00
..
__init__.py scripts: add __init__.py file to scripts/qmp/ 2016-07-22 13:23:13 +05:30
qemu-ga-client scripts/qmp: Use Python 2.6 "except E as ..." syntax 2016-02-08 17:29:54 +01:00
qmp scripts/qmp: Use Python 2.6 "except E as ..." syntax 2016-02-08 17:29:54 +01:00
qmp-shell qmp: allow setting properties to empty string in qmp-shell 2017-03-16 07:13:01 +01:00
qmp.py scripts: ensure monitor socket has SO_REUSEADDR set 2016-07-22 13:23:35 +05:30
qom-fuse QMP: add scripts/qmp 2013-09-18 08:57:02 -04:00
qom-get QMP: add scripts/qmp 2013-09-18 08:57:02 -04:00
qom-list QMP: add scripts/qmp 2013-09-18 08:57:02 -04:00
qom-set QMP: add scripts/qmp 2013-09-18 08:57:02 -04:00
qom-tree scripts: Add support for path as argument of qom-tree 2015-06-19 10:29:14 +02:00