Skip to content

Commit

Permalink
Revert changes to quit and up in ui_context from ClusterLabs#1300 (
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyang2022 committed Jul 11, 2024
1 parent 64ac0c8 commit 7337292
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crmsh/ui_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,7 @@ def up(self):
'''
ok = True
if len(self.stack) > 1:
if ServiceManager().service_is_active("pacemaker.service"):
ok = self.current_level().end_game(no_questions_asked=self._in_transit) is not False
ok = self.current_level().end_game(no_questions_asked=self._in_transit) is not False
self.stack.pop()
self.clear_readline_cache()
return ok
Expand All @@ -348,9 +347,7 @@ def quit(self, rc=0):
'''
Exit from the top level
'''
ok = True
if self.command_name and self.command_name not in constants.NON_FUNCTIONAL_COMMANDS:
ok = self.current_level().end_game()
ok = self.current_level().end_game()
if options.interactive and not options.batch:
if constants.need_reset:
utils.ext_cmd("reset")
Expand Down

0 comments on commit 7337292

Please sign in to comment.