mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix parse_host_port() is_ip call
This commit is contained in:
parent
89519fea0b
commit
f8bd08e6f2
1 changed files with 1 additions and 1 deletions
|
@ -1956,7 +1956,7 @@ def parse_host_port(host_port):
|
|||
port = int(port)
|
||||
if port and ":" in port:
|
||||
raise ValueError('too many ":" separators in host:port "{}"'.format(host_port))
|
||||
if ipaddress.is_ip(host):
|
||||
if is_ip(host):
|
||||
host = ipaddress.ip_address(host)
|
||||
|
||||
return host, port
|
||||
|
|
Loading…
Add table
Reference in a new issue