From 600a0a2fbbcf31cc499d07939bd0843f288efe83 Mon Sep 17 00:00:00 2001 From: Lili Deng Date: Sun, 11 Dec 2022 23:49:07 +0800 Subject: [PATCH] fix UT error --- lisa/sut_orchestrator/azure/platform_.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisa/sut_orchestrator/azure/platform_.py b/lisa/sut_orchestrator/azure/platform_.py index ee1a6f8e2..91eb5eca6 100644 --- a/lisa/sut_orchestrator/azure/platform_.py +++ b/lisa/sut_orchestrator/azure/platform_.py @@ -2486,10 +2486,12 @@ class AzurePlatform(Platform): self._get_detailed_sig(azure_runbook.shared_gallery) ) node_space.features.add(features.VhdGenerationSettings(gen=generation)) - else: + elif azure_runbook.vhd: node_space.features.add( features.VhdGenerationSettings(gen=azure_runbook.hyperv_generation) ) + else: + ... def _load_image_features(self, node_space: schema.NodeSpace) -> None: # This method does the same thing as _convert_to_azure_node_space