Skip to content

Commit

Permalink
Fix: ui_context: crm cluster delete autocompletion #1403 #1460
Browse files Browse the repository at this point in the history
If you type
  $ crm configure delete
of do it interactively
  $ crm configure
  crm(live/node1)configure# delete
and then double press tab it, should propose possible resource options.
And this commit makes it working again.
  • Loading branch information
Aleksei Burlakov committed Jun 25, 2024
1 parent fe4d011 commit 5be7bb6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crmsh/ui_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ def enter_level(self, level):
self._in_transit = True

entry = level()
if level.name in ['configure']:
if 'requires' in dir(entry) and not entry.requires():
self.fatal_error("Missing requirements")
self.stack.append(entry)
self.clear_readline_cache()

Expand Down

0 comments on commit 5be7bb6

Please sign in to comment.