From c83b7b8c370796277c34ea34b602828e5c5dd615 Mon Sep 17 00:00:00 2001 From: bgreenb Date: Sun, 25 Oct 2020 23:40:59 -0700 Subject: [PATCH] FEATURE: Add comment on hypervisor parameter code --- common/src/stack/command/stack/commands/list/vm/__init__.py | 1 + 1 file changed, 1 insertion(+) 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']