Merge pull request #815 from bcoca/mount_fix_opts

fix for mount w/o opts (bug introduced when fixing bind mounts)
reviewable/pr18780/r1
Brian Coca 10 years ago
commit b95e8699e8

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

Loading…
Cancel
Save