Pass mntinfo_file to _get_mount_info to avoid possible future code break

This commit is contained in:
NdFeB 2021-09-13 00:35:13 +02:00
parent c4b3678020
commit 53a10bd23d

View file

@ -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