1
0
Fork 0
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:
Abhijit Menon-Sen 2015-08-23 22:52:35 +05:30
parent 1886307845
commit 09e4eac2e5

View file

@ -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