mirror of https://github.com/ansible/ansible.git
Use full python package for ansiballz cache filenames (#77090)
* Use full python package for ansiballz cache filenames * Be a little more explicit about test goalspull/77127/head
parent
4f9c7fd509
commit
8cbe1435c2
@ -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,3 @@
|
||||
#!/usr/bin/python
|
||||
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