diff --git a/lib/ansible/inventory/helpers.py b/lib/ansible/inventory/helpers.py index 7ea9dea7c3..39c7221091 100644 --- a/lib/ansible/inventory/helpers.py +++ b/lib/ansible/inventory/helpers.py @@ -27,7 +27,12 @@ def sort_groups(groups): def get_group_vars(groups): + """ + Combine all the group vars from a list of inventory groups. + :param groups: list of ansible.inventory.group.Group objects + :rtype: dict + """ results = {} for group in sort_groups(groups): results = combine_vars(results, group.get_vars())