mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #14709 from bcoca/squash_fix_atp
added package to special 'squashable' fields
This commit is contained in:
commit
157ebcfe0b
1 changed files with 6 additions and 1 deletions
|
@ -269,7 +269,12 @@ class TaskExecutor:
|
||||||
if len(items) > 0 and task_action in self.SQUASH_ACTIONS:
|
if len(items) > 0 and task_action in self.SQUASH_ACTIONS:
|
||||||
if all(isinstance(o, string_types) for o in items):
|
if all(isinstance(o, string_types) for o in items):
|
||||||
final_items = []
|
final_items = []
|
||||||
name = self._task.args.pop('name', None) or self._task.args.pop('pkg', None)
|
|
||||||
|
name = None
|
||||||
|
for allowed in ['name', 'pkg', 'package']:
|
||||||
|
name = self._task.args.pop(allowed, None)
|
||||||
|
if name is not None:
|
||||||
|
break
|
||||||
|
|
||||||
# This gets the information to check whether the name field
|
# This gets the information to check whether the name field
|
||||||
# contains a template that we can squash for
|
# contains a template that we can squash for
|
||||||
|
|
Loading…
Reference in a new issue