Michael Pasternak has uploaded a new change for review. Change subject: cli: "exit" command fails after "disconnect" from script #971285 ......................................................................
cli: "exit" command fails after "disconnect" from script #971285 Change-Id: Ie6579879fa45e97e2d13f2e32202ab5f17665b24 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=971285 Signed-off-by: Michael pasternak <[email protected]> --- M src/ovirtcli/shell/engineshell.py 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-cli refs/changes/75/15475/1 diff --git a/src/ovirtcli/shell/engineshell.py b/src/ovirtcli/shell/engineshell.py index cf3c678..e269208 100644 --- a/src/ovirtcli/shell/engineshell.py +++ b/src/ovirtcli/shell/engineshell.py @@ -111,7 +111,8 @@ command = s.split(' ')[0] if command == '' and not self.__input_buffer: pass - elif self.context.connection == None and command not in EngineShell.OFF_LINE_CONTENT: + elif self.context.connection == None and \ + command.strip() not in EngineShell.OFF_LINE_CONTENT: self._error(Messages.Error.INVALID_COMMAND % command) else: if s.endswith('\\') and s != 'EOF': -- To view, visit http://gerrit.ovirt.org/15475 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie6579879fa45e97e2d13f2e32202ab5f17665b24 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine-cli Gerrit-Branch: master Gerrit-Owner: Michael Pasternak <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
