mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 15:15:26 +01:00
mount - fix module_util pathing issue for ansible 2.9
In Ansible 2.9 (pre 2.10 routing), the AnsiballZ creation of the payload will add an extra directory to the module_util path because ismount.py shares the same name as it's parent dir which creates an inconsistency in the payload creation. This causes the Collection module ansible.posix.mount to work in Ansible 2.10 but not 2.9, with this pull request a simple renaming of the module_util which side steps this inconsistency. Fixes https://github.com/ansible-collections/ansible.posix/issues/21 Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
0d0f8217cf
commit
01d06f6be3
3 changed files with 4 additions and 1 deletions
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
bugfixes:
|
||||
- mount - fix issues with ismount module_util pathing for Ansible 2.9 (fixes https://github.com/ansible-collections/ansible.posix/issues/21)
|
||||
|
|
@ -176,7 +176,7 @@ import os
|
|||
import platform
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible_collections.ansible.posix.plugins.module_utils.ismount import ismount
|
||||
from ansible_collections.ansible.posix.plugins.module_utils.mount import ismount
|
||||
from ansible.module_utils.six import iteritems
|
||||
from ansible.module_utils._text import to_bytes, to_native
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue