mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
add want_hostcollections for sat6 source vars
Signed-off-by: moss <smossber@redhat.com>
This commit is contained in:
parent
2e980293d9
commit
0f50dfd617
@ -1850,6 +1850,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():
|
||||
@ -1857,6 +1858,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))
|
||||
|
||||
@ -1869,6 +1872,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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user