This commit is contained in:
Vladimir Botka 2024-11-28 07:17:50 +00:00 committed by GitHub
commit 8c52ca81e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,3 @@
---
bugfixes:
- fstab - If a comment is appended to a fstab entry, state present creates a double-entry (https://github.com/ansible-collections/ansible.posix/issues/595).

View file

@ -303,7 +303,7 @@ def _set_mount_save_old(module, args):
continue continue
fields = line.split() fields = line.split('#')[0].split()
# Check if we got a valid line for splitting # Check if we got a valid line for splitting
# (on Linux the 5th and the 6th field is optional) # (on Linux the 5th and the 6th field is optional)