Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Abhijeet Kasurde <[email protected]>
  • Loading branch information
NeodymiumFerBore and Akasurde committed Jun 3, 2022
1 parent 04089e8 commit 38310f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/modules/mount.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
has already a device mounted on, and its source is different than I(src),
the module will fail to avoid unexpected unmount or mount point override.
If the mount point is not present, the mount point will be created.
The I(fstab) is completely ignored.
The I(fstab) is completely ignored. This option is added in version 1.4.0.
- C(absent) specifies that the device mount's entry will be removed from
I(fstab) and will also unmount the device and remove the mount
point.
Expand Down Expand Up @@ -726,7 +726,7 @@ def _is_same_mount_src(module, src, mountpoint, linux_mounts):
# the mountpoint is a bind mount AND the source FS is the same than 'src'.
# is_bind_mounted() is not reliable on Solaris, NetBSD and OpenBSD.
# But we can rely on 'mount -v' on all other platforms, and Linux non-bind mounts.
if (is_bind_mounted(module, linux_mounts, mountpoint, src)):
if is_bind_mounted(module, linux_mounts, mountpoint, src):
return True

# mount with parameter -v has a close behavior on Linux, *BSD, SunOS
Expand Down

0 comments on commit 38310f6

Please sign in to comment.