From 8e34860d6ccda0cd9ebb5a86e2ba365e4b94767d Mon Sep 17 00:00:00 2001 From: Vladimir Botka Date: Thu, 21 Nov 2024 20:54:27 +0100 Subject: [PATCH] Fix #595. Remove comment from fstab entry on updating. --- 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 dadbd46..b9e496e 100644 --- a/plugins/modules/mount.py +++ b/plugins/modules/mount.py @@ -303,7 +303,7 @@ def _set_mount_save_old(module, args): continue - fields = line.split() + fields = line.split('#')[0].split() # Check if we got a valid line for splitting # (on Linux the 5th and the 6th field is optional)