Skip to content

Commit 08b339f

Browse files
adityageshLiliDeng
authored andcommitted
Fix the bug which causes marketplace_raw to not get resolved image name.
This causes the marketplace image test results to have "latest" in its image name. This regression is due to https://github.com/microsoft/lisa/pull/3990/files#diff-23cef282c9cdd9bba151475396f0470d0775ad931d6f4f40a1c63f5f6165393dR1459-R1466 The change from `node_runbook.marketplace =` to `node_runbook.marketplace.version =` does NOT trigger the marketplace.setter @marketplace.setter def marketplace(self, value: Optional[AzureVmMarketplaceSchema]) -> None: self._parse_image_raw("marketplace", value)
1 parent c900222 commit 08b339f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lisa/sut_orchestrator/azure/platform_.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2892,6 +2892,8 @@ def _resolve_marketplace_image_version(
28922892
node_runbook.marketplace.version = self._resolve_marketplace_image(
28932893
node_runbook.location, node_runbook.marketplace
28942894
).version
2895+
# update raw values to reflect the resolved version
2896+
node_runbook.update_raw()
28952897

28962898
def find_marketplace_image_location(self) -> List[str]:
28972899
# locations used to query marketplace image information. Some image is not

0 commit comments

Comments
 (0)