From 14def1e693c1b743de53ff1d05bf887a27198313 Mon Sep 17 00:00:00 2001 From: moss Date: Tue, 22 May 2018 23:32:54 +0300 Subject: [PATCH] add want_hostcollections for sat6 source vars Signed-off-by: moss --- awx/main/tasks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index c22c0f0cbe..ffb646856a 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -1889,6 +1889,7 @@ class RunInventoryUpdate(BaseTask): group_patterns = '[]' group_prefix = 'foreman_' + want_hostcollections = 'False' foreman_opts = dict(inventory_update.source_vars_dict.items()) foreman_opts.setdefault('ssl_verify', 'False') for k, v in foreman_opts.items(): @@ -1896,6 +1897,8 @@ class RunInventoryUpdate(BaseTask): group_patterns = v elif k == 'satellite6_group_prefix' and isinstance(v, basestring): group_prefix = v + elif k == 'satellite6_want_hostcollections' and isinstance(v, bool): + want_hostcollections = v else: cp.set(section, k, six.text_type(v)) @@ -1908,6 +1911,7 @@ class RunInventoryUpdate(BaseTask): cp.add_section(section) cp.set(section, 'group_patterns', group_patterns) cp.set(section, 'want_facts', True) + cp.set(section, 'want_hostcollections', want_hostcollections) cp.set(section, 'group_prefix', group_prefix) section = 'cache'