summaryrefslogtreecommitdiff
path: root/lib/ansible/inventory/host.py
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2015-07-31 12:01:32 -0400
committerBrian Coca <brian.coca+git@gmail.com>2015-07-31 12:01:58 -0400
commitf16b745f172a92e0357491bd5fdfea111de50089 (patch)
tree77ed8e2bde9b01c64a2475945ba171a05e28ed01 /lib/ansible/inventory/host.py
parent496186f5debf20ec3023c6fa99c8bb0a2b21a4fe (diff)
downloadansible-f16b745f172a92e0357491bd5fdfea111de50089.tar.gz
now properly uses default port if defined
Diffstat (limited to 'lib/ansible/inventory/host.py')
-rw-r--r--lib/ansible/inventory/host.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ansible/inventory/host.py b/lib/ansible/inventory/host.py
index 2de190ce1d..43a96d54bf 100644
--- a/lib/ansible/inventory/host.py
+++ b/lib/ansible/inventory/host.py
@@ -19,7 +19,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible import constants as C
from ansible.inventory.group import Group
from ansible.utils.vars import combine_vars
@@ -76,7 +75,7 @@ class Host:
self.ipv4_address = name
self.ipv6_address = name
- if port and port != C.DEFAULT_REMOTE_PORT:
+ if port:
self.set_variable('ansible_ssh_port', int(port))
self._gathered_facts = False