mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
fix for mount w/o opts (bug introduced when fixing bind mounts)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user