From 4d8b039074e72fbf6ef0a2f74b731f384010e541 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sun, 14 Jul 2013 17:16:51 -0400 Subject: [PATCH] Fix to use get_host so it shows up in the list of overall added hosts. --- awx/main/management/commands/inventory_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/management/commands/inventory_import.py b/awx/main/management/commands/inventory_import.py index 66227fbcc3..e1a769fdca 100644 --- a/awx/main/management/commands/inventory_import.py +++ b/awx/main/management/commands/inventory_import.py @@ -196,7 +196,7 @@ class IniLoader(BaseLoader): tokens = shlex.split(line) if input_mode == 'host': - new_host = MemHost(tokens[0], self.inventory_base) + new_host = self.get_host(tokens[0]) if len(tokens) > 1: variables = {} for t in tokens[1:]: