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.
This commit is contained in:
yuanmengqi
2025-07-31 05:14:00 +00:00
parent b081c328bf
commit 5e24d72da6

View File

@@ -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)}")