mirror of
https://github.com/ansible/awx.git
synced 2026-07-02 11:58:03 -02:30
Fixed bug when all group vars are not included
This commit is contained in:
@@ -297,6 +297,9 @@ class Inventory(CommonModelNameNotUnique, ResourceMixin, RelatedJobsMixin):
|
||||
if not (data.get(group_name, {}).get('hosts', []) or data.get(group_name, {}).get('children', [])):
|
||||
data.pop(group_name)
|
||||
|
||||
# Add the all group
|
||||
data['all'] = all_group
|
||||
|
||||
if hostvars:
|
||||
data.setdefault('_meta', dict())
|
||||
data['_meta'].setdefault('hostvars', dict())
|
||||
|
||||
Reference in New Issue
Block a user