From 5df3058aabe27c0e02f1f89364e5bda8b67a666c 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) --- system/mount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/mount.py b/system/mount.py index d1104b361e1..d415d65b0d5 100644 --- a/system/mount.py +++ b/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)