On 05/04/2017 07:54 AM, Marc-André Lureau wrote: > qemu-ga doesn't implement it. > > Signed-off-by: Marc-André Lureau <[email protected]> > --- > scripts/qmp/qmp-shell | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >
Reviewed-by: Eric Blake <[email protected]> > 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): > -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
