From b0e9ab81afbcb147e86f6bd8e8b87fd970a86dfb Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sun, 14 Jul 2013 17:19:31 -0400 Subject: [PATCH] Added fix for "host:port" shortcuts in INI format definitions. --- awx/main/management/commands/inventory_import.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awx/main/management/commands/inventory_import.py b/awx/main/management/commands/inventory_import.py index e1a769fdca..1be432eb11 100644 --- a/awx/main/management/commands/inventory_import.py +++ b/awx/main/management/commands/inventory_import.py @@ -134,6 +134,9 @@ class MemHost(object): class BaseLoader(object): def get_host(self, name): + if ":" in name: + tokens = name.split(":") + name = tokens[0] global host_names host = None if not name in host_names: