Skip to content

Commit

Permalink
mount - fix module_util pathing issue for ansible 2.9
Browse files Browse the repository at this point in the history
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 ansible-collections#21

Signed-off-by: Adam Miller <[email protected]>
  • Loading branch information
maxamillion committed Jun 19, 2020
1 parent 0d0f821 commit bf1308c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/fragments/21-mount-module_util-routing-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- mount - fix issues with ismount module_util pathing for Ansible 2.9
File renamed without changes.
2 changes: 1 addition & 1 deletion plugins/modules/mount.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
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

Expand Down

0 comments on commit bf1308c

Please sign in to comment.