Skip to content

Commit

Permalink
group_names should not include implied 'all', fixes ansible#12763
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoca committed Oct 15, 2015
1 parent 68121b7 commit aee6de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/vars/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def _get_magic_variables(self, loader, play, host, task, include_hostvars, inclu
variables['playbook_dir'] = loader.get_basedir()

if host:
variables['group_names'] = [group.name for group in host.get_groups()]
variables['group_names'] = [group.name for group in host.get_groups() if group.name != 'all']

if self._inventory is not None:
variables['groups'] = dict()
Expand Down

0 comments on commit aee6de5

Please sign in to comment.