1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
Michael DeHaan 2013-06-01 11:33:17 -04:00
parent 9f567f05d6
commit b9e72cdd98

View file

@ -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: