mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-05-07 13:53:05 +00:00
Merge pull request #597 from vbotka/mount-fix-comment
Remove comment from fstab entry on updating. SUMMARY Fix #595. ISSUE TYPE Bugfix Pull Request COMPONENT NAME ansible.posix.mount ADDITIONAL INFORMATION Reviewed-by: Hideki Saito <saito@fgrep.org> Reviewed-by: Vladimir Botka <vbotka@gmail.com>
This commit is contained in:
committed by
Hideki Saito
parent
1b9ae1c77f
commit
f61bb76a86
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user