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)