fix for mount w/o opts (bug introduced when fixing bind mounts)

pull/18777/head
Brian Coca 10 years ago committed by Matt Clay
parent 70856d5228
commit 2278a69f7b

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

Loading…
Cancel
Save