From 53a10bd23d6e0661c613ca089c0f31ffdd306408 Mon Sep 17 00:00:00 2001 From: NdFeB Date: Mon, 13 Sep 2021 00:35:13 +0200 Subject: [PATCH] Pass mntinfo_file to _get_mount_info to avoid possible future code break --- plugins/modules/mount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/mount.py b/plugins/modules/mount.py index 94f37c5..4fbd6bd 100644 --- a/plugins/modules/mount.py +++ b/plugins/modules/mount.py @@ -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