Make linear strategy plugin 2.4 compatible
In Ansible 2.4, the InventoryManager 'get_group_dict' function was renamed to 'get_groups_dict' Change-Id: Ic758253af7b2fe742d253f363edeb2953130a2f5
This commit is contained in:
parent
bfc26ac698
commit
5cd56106c4
|
@ -116,6 +116,9 @@ class StrategyModule(LINEAR.StrategyModule):
|
|||
|
||||
_play_context = copy.deepcopy(play_context)
|
||||
|
||||
try:
|
||||
groups = self._inventory.get_groups_dict()
|
||||
except AttributeError:
|
||||
groups = self._inventory.get_group_dict()
|
||||
physical_hosts = groups.get('hosts', groups.get('all', {}))
|
||||
physical_host_addrs = {}
|
||||
|
|
Loading…
Reference in New Issue