From 5e24d72da6b459a74244f527ee061a2be8256c10 Mon Sep 17 00:00:00 2001 From: yuanmengqi Date: Thu, 31 Jul 2025 05:14:00 +0000 Subject: [PATCH] fix: correct IP address return logic in AWSProvider - Reverted the return value in the AWSProvider class to use private IP address instead of public IP address. - Ensured that the logic remains intact while addressing the specific requirement for VNC access. --- desktop_env/providers/aws/provider.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop_env/providers/aws/provider.py b/desktop_env/providers/aws/provider.py index 002a9b9..44de796 100644 --- a/desktop_env/providers/aws/provider.py +++ b/desktop_env/providers/aws/provider.py @@ -77,8 +77,8 @@ class AWSProvider(Provider): else: logger.warning("No public IP address available for VNC access") - #return private_ip_address - return public_ip_address + return private_ip_address + # return public_ip_address return '' # Return an empty string if no IP address is found except ClientError as e: logger.error(f"Failed to retrieve IP address for the instance {path_to_vm}: {str(e)}")