Fix an issue where a cloud instance deployment fails due to wrong import.

This commit is contained in:
Khushboo Vashi
2024-07-24 15:34:30 +05:30
parent 1d5f5a2067
commit bc10fa5c03
2 changed files with 2 additions and 1 deletions

View File

@@ -11,12 +11,12 @@ import secrets
import string
import urllib3
import ipaddress
from pgadmin.utils.constants import IP_ADDRESS_STRING
def get_my_ip():
""" Return the public IP of this host """
http = urllib3.PoolManager()
IP_ADDRESS_STRING = '{}/{}'
try:
external_ip = http.request('GET', 'https://ident.me').data
except Exception: