diff --git a/crmsh/ui_context.py b/crmsh/ui_context.py index 8533c2f26..badfef6c6 100644 --- a/crmsh/ui_context.py +++ b/crmsh/ui_context.py @@ -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