Michael Pasternak has uploaded a new change for review. Change subject: cli: /disconnect on exit only if not already disconnected ......................................................................
cli: /disconnect on exit only if not already disconnected Change-Id: I7fa77a1fdd4db73c84c398d8c4ab7499cd967250 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/08/20608/1 diff --git a/src/ovirtcli/shell/engineshell.py b/src/ovirtcli/shell/engineshell.py index 91d178d..d8dbc3c 100644 --- a/src/ovirtcli/shell/engineshell.py +++ b/src/ovirtcli/shell/engineshell.py @@ -263,7 +263,8 @@ """ triggered when StateMachine.EXITING state is acquired """ - self.do_disconnect('') + if StateMachine.get_origin_state() != DFSAState.DISCONNECTED: + self.do_disconnect('') def __register_sys_listeners(self): self.onError += ErrorListener(self) -- To view, visit http://gerrit.ovirt.org/20608 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7fa77a1fdd4db73c84c398d8c4ab7499cd967250 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
