From 85201c5a123c257770cfa88fb65b5b99fab7534a Mon Sep 17 00:00:00 2001 From: Lili Deng Date: Fri, 5 May 2023 13:21:38 +0800 Subject: [PATCH] add missing part for assigning private ip address --- lisa/sut_orchestrator/azure/features.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisa/sut_orchestrator/azure/features.py b/lisa/sut_orchestrator/azure/features.py index bec126a518..6f2fd16ff9 100644 --- a/lisa/sut_orchestrator/azure/features.py +++ b/lisa/sut_orchestrator/azure/features.py @@ -125,11 +125,12 @@ def _start(self, wait: bool = True) -> None: self._node = cast(RemoteNode, self._node) platform: AzurePlatform = self._platform # type: ignore - public_ip, _ = get_primary_ip_addresses( + public_ip, private_ip = get_primary_ip_addresses( platform, self._resource_group_name, get_vm(platform, self._node) ) node_info = self._node.connection_info node_info[constants.ENVIRONMENTS_NODES_REMOTE_PUBLIC_ADDRESS] = public_ip + node_info[constants.ENVIRONMENTS_NODES_REMOTE_ADDRESS] = private_ip self._node.set_connection_info(**node_info) self._node._is_initialized = False self._node.initialize()