Fix incorrect command-line parameters for Solaris (#22865)

* Fix incorrect command-line parameters for Solaris

* Update mount.py
pull/28599/head
AlexZolotarenko 7 years ago committed by Brian Coca
parent 65feaa11b2
commit 69bf5331b4

@ -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…
Cancel
Save