Skip to content

Commit

Permalink
add missing part for assigning private ip address
Browse files Browse the repository at this point in the history
  • Loading branch information
LiliDeng committed May 6, 2023
1 parent 4a4015f commit 85201c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lisa/sut_orchestrator/azure/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 85201c5

Please sign in to comment.