Skip to content

Commit

Permalink
Use rsplit(':',1) for clarity; no functional changes
Browse files Browse the repository at this point in the history
  • Loading branch information
amenonsen committed Aug 23, 2015
1 parent 1886307 commit 09e4eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/plugins/action/add_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 09e4eac

Please sign in to comment.