mirror of https://github.com/ansible/ansible.git
* [stable-2.11] Use full python package for ansiballz cache filenames (#77090)
* Use full python package for ansiballz cache filenames
* Be a little more explicit about test goals
(cherry picked from commit 8cbe143)
Co-authored-by: Matt Martz <matt@sivel.net>
* linting
pull/77309/head
parent
7a8c6d7418
commit
ef46bc46f4
@ -0,0 +1,5 @@
|
||||
bugfixes:
|
||||
- AnsiballZ - Ensure we use the full python package in the module cache filename
|
||||
to avoid a case where ``collections:`` is used to execute a module via short name,
|
||||
where the short name duplicates another module from ``ansible.builtin`` or another
|
||||
collection that was executed previously.
|
||||
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/python
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
AnsibleModule({}).exit_json(ping='duplicate.name.pong')
|
||||
@ -0,0 +1,15 @@
|
||||
- hosts: localhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- ping:
|
||||
register: result1
|
||||
|
||||
- ping:
|
||||
collections:
|
||||
- duplicate.name
|
||||
register: result2
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result1.ping == 'pong'
|
||||
- result2.ping == 'duplicate.name.pong'
|
||||
Loading…
Reference in New Issue