mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Use rsplit(':',1) for clarity; no functional changes
This commit is contained in:
parent
1886307845
commit
09e4eac2e5
1 changed files with 1 additions and 1 deletions
|
@ -81,5 +81,5 @@ def _parse_ip_host_and_port(hostname):
|
|||
else:
|
||||
return hostname, None
|
||||
elif ':' in hostname:
|
||||
return hostname.split(':')
|
||||
return hostname.rsplit(':', 1)
|
||||
return hostname, None
|
||||
|
|
Loading…
Reference in a new issue