From: "Marc-André Lureau" <marcandre.lureau@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/4] qmp-shell: ignore query-commands error
Date: Thu, 4 May 2017 10:44:56 -0400 (EDT) [thread overview]
Message-ID: <2066796871.7142556.1493909096748.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <87lgqcadh8.fsf@dusky.pond.sub.org>
Hi
----- Original Message -----
> I'd like to rephrase "ignore query-commands error" to "Cope with
> query-commands error" on commit, if you don't mind.
>
No, please do :)
thanks
> Marc-André Lureau <marcandre.lureau@redhat.com> writes:
>
> > qemu-ga doesn't implement it.
> >
> > Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> > ---
> > scripts/qmp/qmp-shell | 5 ++++-
> > 1 file changed, 4 insertions(+), 1 deletion(-)
> >
> > diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/qmp-shell
> > index f80d02312a..04b8fa3eae 100755
> > --- a/scripts/qmp/qmp-shell
> > +++ b/scripts/qmp/qmp-shell
> > @@ -126,7 +126,10 @@ class QMPShell(qmp.QEMUMonitorProtocol):
> > return arg
> >
> > def _fill_completion(self):
> > - for cmd in self.cmd('query-commands')['return']:
> > + cmds = self.cmd('query-commands')
> > + if cmds.has_key('error'):
> > + return
> > + for cmd in cmds['return']:
> > self._completer.append(cmd['name'])
> >
> > def __completer_setup(self):
>
next prev parent reply other threads:[~2017-05-04 14:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-04 12:54 [Qemu-devel] [PATCH 0/4] qmp-shell: learn to connect to qemu-ga Marc-André Lureau
2017-05-04 12:54 ` [Qemu-devel] [PATCH 1/4] qmp-shell: add -N option to skip negotiate Marc-André Lureau
2017-05-04 13:34 ` Eric Blake
2017-05-04 12:54 ` [Qemu-devel] [PATCH 2/4] qmp-shell: ignore query-commands error Marc-André Lureau
2017-05-04 13:50 ` Eric Blake
2017-05-04 14:44 ` Markus Armbruster
2017-05-04 14:44 ` Marc-André Lureau [this message]
2017-05-04 12:54 ` [Qemu-devel] [PATCH 3/4] qmp-shell: don't show version greeting if unavailable Marc-André Lureau
2017-05-04 13:50 ` Eric Blake
2017-05-04 12:54 ` [Qemu-devel] [PATCH 4/4] qmp-shell: improve help Marc-André Lureau
2017-05-04 13:51 ` Eric Blake
2017-05-04 14:48 ` Markus Armbruster
2017-05-04 15:22 ` [Qemu-devel] [PATCH 0/4] qmp-shell: learn to connect to qemu-ga Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2066796871.7142556.1493909096748.JavaMail.zimbra@redhat.com \
--to=marcandre.lureau@redhat.com \
--cc=armbru@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).