From 2a1fb334ee7c10335b8b309ad38294a05fe3e7a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Wed, 10 Jan 2024 00:06:26 +0200 Subject: [PATCH] mount: edit boot parameters warning condition (#523) the CI failures are unrelated and shouldn't even be showing up ... I'm going to sort that out separately but that doesn't need to prevent this merge, all relevant CI tests passed --- plugins/modules/mount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/mount.py b/plugins/modules/mount.py index d28ae38..1fdf276 100644 --- a/plugins/modules/mount.py +++ b/plugins/modules/mount.py @@ -831,7 +831,7 @@ def main(): # handle mount on boot. To avoid mount option conflicts, if 'noauto' # specified in 'opts', mount module will ignore 'boot'. opts = args['opts'].split(',') - if 'noauto' in opts: + if module.params['boot'] and 'noauto' in opts: args['warnings'].append("Ignore the 'boot' due to 'opts' contains 'noauto'.") elif not module.params['boot']: args['boot'] = 'no'