Skip to content

Commit

Permalink
Fix: crm cluster delete autocomplete ClusterLabs#1403 ClusterLabs#1460
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksei Burlakov committed Jun 21, 2024
1 parent fe4d011 commit d7e97d9
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 @@ -78,6 +78,9 @@ def run(self, line):
self.command_name = self.command_info.name
if self.command_info.type == 'level':
self.enter_level(self.command_info.level)
entry = self.current_level()
if 'requires' in dir(entry) and not entry.requires():
self.fatal_error("Missing requirements")
else:
cmd = True
break
Expand Down

0 comments on commit d7e97d9

Please sign in to comment.