Commit b9e72cdd by Michael DeHaan

Warn when there is a space in the mount module opts parameter.

parent 9f567f05
...@@ -234,6 +234,7 @@ def main(): ...@@ -234,6 +234,7 @@ def main():
) )
) )
changed = False changed = False
rc = 0 rc = 0
args = { args = {
...@@ -245,6 +246,8 @@ def main(): ...@@ -245,6 +246,8 @@ def main():
args['passno'] = module.params['passno'] args['passno'] = module.params['passno']
if module.params['opts'] is not None: if module.params['opts'] is not None:
args['opts'] = module.params['opts'] 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: if module.params['dump'] is not None:
args['dump'] = module.params['dump'] args['dump'] = module.params['dump']
if module.params['fstab'] is not None: if module.params['fstab'] is not None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment