From 254a0ab69d2ec0425747bd072d6b77e6555503c4 Mon Sep 17 00:00:00 2001 From: tikitavi Date: Wed, 13 Mar 2019 01:46:46 +0300 Subject: [PATCH] fix inventory script (#4342) hosts are ordered dictionary remove ansible_user from inventory file --- contrib/inventory_builder/inventory.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/inventory_builder/inventory.py b/contrib/inventory_builder/inventory.py index 32213bdd1..c150cd40f 100644 --- a/contrib/inventory_builder/inventory.py +++ b/contrib/inventory_builder/inventory.py @@ -127,8 +127,7 @@ class KubesprayInventory(object): if group == 'all': self.debug("Adding group {0}".format(group)) if group not in self.yaml_config: - all_dict = OrderedDict([('hosts', {}), - ('vars', {'ansible_user': 'centos'}), + all_dict = OrderedDict([('hosts', OrderedDict({})), ('children', OrderedDict({}))]) self.yaml_config = {'all': all_dict } else: