mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix incorrect command-line parameters for Solaris (#22865)
* Fix incorrect command-line parameters for Solaris * Update mount.py
This commit is contained in:
parent
65feaa11b2
commit
69bf5331b4
1 changed files with 4 additions and 1 deletions
|
@ -317,7 +317,10 @@ def unset_mount(module, args):
|
|||
def _set_fstab_args(fstab_file):
|
||||
result = []
|
||||
|
||||
if fstab_file and fstab_file != '/etc/fstab':
|
||||
if (
|
||||
fstab_file and
|
||||
fstab_file != '/etc/fstab' and
|
||||
get_platform().lower() != 'sunos'):
|
||||
if get_platform().lower().endswith('bsd'):
|
||||
result.append('-F')
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue