Fix for inventory hosts on localhost with alternate ports.
Fix for inventory hosts on localhost with alternate ports.

Fixes https://github.com/ansible/ansible-modules-core/issues/2831

thaim/ansible,thaim/ansible