diff --git a/common/src/stack/command/stack/commands/list/vm/__init__.py b/common/src/stack/command/stack/commands/list/vm/__init__.py index 1fe7522a4..0682fda1a 100644 --- a/common/src/stack/command/stack/commands/list/vm/__init__.py +++ b/common/src/stack/command/stack/commands/list/vm/__init__.py @@ -61,6 +61,7 @@ def run(self, param, args): # status from the hypervisor expanded = self.str2bool(expanded) + # If the hypervisor parameter is used, check if its a valid hypervisor host if hypervisor and not self.is_hypervisor(hypervisor): raise ParamError(self, param = 'hypervisor', msg = f'{hypervisor} is not a valid hypervisor') header = ['virtual machine']