From 2278a69f7bbaccea0d4a8a93fb4d824c296cfca8 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 18 Feb 2015 15:22:24 -0500 Subject: [PATCH] fix for mount w/o opts (bug introduced when fixing bind mounts) --- lib/ansible/modules/system/mount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/mount.py b/lib/ansible/modules/system/mount.py index d1104b361e..d415d65b0d 100644 --- a/lib/ansible/modules/system/mount.py +++ b/lib/ansible/modules/system/mount.py @@ -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)