mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 23:25:28 +01:00
Pass mntinfo_file to _get_mount_info to avoid possible future code break
This commit is contained in:
parent
c4b3678020
commit
53a10bd23d
1 changed files with 1 additions and 1 deletions
|
|
@ -648,7 +648,7 @@ def _get_mount_info(module, mntinfo_file="/proc/self/mountinfo"):
|
|||
def get_linux_mounts(module, mntinfo_file="/proc/self/mountinfo"):
|
||||
"""Gather mount information"""
|
||||
|
||||
lines = _get_mount_info(module)
|
||||
lines = _get_mount_info(module, mntinfo_file)
|
||||
# Keep same behavior than before
|
||||
if lines is None:
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue