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

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

This commit is contained in:
Brian Coca 2015-02-18 15:22:24 -05:00 committed by Matt Clay
parent 70856d5228
commit 2278a69f7b

View file

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