Merge pull request #815 from bcoca/mount_fix_opts

fix for mount w/o opts (bug introduced when fixing bind mounts)
This commit is contained in:
Brian Coca 2015-02-18 15:28:20 -05:00
commit b95e8699e8

View file

@ -320,7 +320,7 @@ def main():
if os.path.ismount(name):
if changed:
res,msg = mount(module, **args)
elif "bind" in args['opts']:
elif 'bind' in args.get('opts', []):
changed = True
cmd = 'mount -l'
rc, out, err = module.run_command(cmd)