From 1512495dd774e9b566db4d007e73d65bbef66639 Mon Sep 17 00:00:00 2001 From: copyrights Date: Mon, 23 May 2022 22:21:11 +0200 Subject: [PATCH] mount: remove boot exception if defaults in opts --- plugins/modules/mount.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/modules/mount.py b/plugins/modules/mount.py index 2021464..65d6efd 100644 --- a/plugins/modules/mount.py +++ b/plugins/modules/mount.py @@ -743,11 +743,8 @@ def main(): args['warnings'].append("Ignore the 'boot' due to 'opts' contains 'noauto'.") elif not module.params['boot']: args['boot'] = 'no' - if 'defaults' in opts: - args['warnings'].append("Ignore the 'boot' due to 'opts' contains 'defaults'.") - else: - opts.append('noauto') - args['opts'] = ','.join(opts) + opts.append('noauto') + args['opts'] = ','.join(opts) # If fstab file does not exist, we first need to create it. This mainly # happens when fstab option is passed to the module.