Skip to content

Commit a325960

Browse files
authored
use ipaddress.ip_address() to check if address is valid (#4444)
1 parent 3488ddd commit a325960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/wrappers/common/cluster/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ def get_valid_connection_parts(connection):
577577
)
578578

579579
try:
580-
ipaddress.ip(master_ep[0])
580+
ipaddress.ip_address(master_ep[0])
581581
except ValueError:
582582
raise InvalidConnectionError("Invalid master IP")
583583

0 commit comments

Comments
 (0)