From b9e72cdd984ca1e542106c56f2fd1d3d3b1eb7cc Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 1 Jun 2013 11:33:17 -0400 Subject: [PATCH] Warn when there is a space in the mount module opts parameter. --- library/system/mount | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/system/mount b/library/system/mount index 014cdf958ef..fdc4378bdf4 100644 --- a/library/system/mount +++ b/library/system/mount @@ -234,6 +234,7 @@ def main(): ) ) + changed = False rc = 0 args = { @@ -245,6 +246,8 @@ def main(): args['passno'] = module.params['passno'] if module.params['opts'] is not None: args['opts'] = module.params['opts'] + if ' ' in args['opts']: + module.fail_json(msg="unexpected space in 'opts' parameter") if module.params['dump'] is not None: args['dump'] = module.params['dump'] if module.params['fstab'] is not None: