qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/4] qmp-shell: ignore query-commands error


From: Marc-André Lureau
Subject: Re: [Qemu-devel] [PATCH 2/4] qmp-shell: ignore query-commands error
Date: Thu, 4 May 2017 10:44:56 -0400 (EDT)

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 <address@hidden> writes:
> 
> > qemu-ga doesn't implement it.
> >
> > Signed-off-by: Marc-André Lureau <address@hidden>
> > ---
> >  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):
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]