From c4852f695465d71babce908439ede2cd41cb1222 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Tue, 13 Aug 2013 13:00:37 -0500 Subject: [PATCH] Cleaning up some pep8 whitespace issues in mongodb_user --- library/database/mongodb_user | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/library/database/mongodb_user b/library/database/mongodb_user index 8a99ed6d09d..cb5a7a97de6 100644 --- a/library/database/mongodb_user +++ b/library/database/mongodb_user @@ -115,16 +115,16 @@ else: def user_add(module, client, db_name, user, password, roles): try: - db = client[db_name] - if roles is None: - db.add_user(user, password, False) - else: - try: - db.add_user(user, password, None, roles=roles) - except: - module.fail_json(msg='"problem adding user; you must be on mongodb 2.4+ and pymongo 2.5+ to use the roles param"') + db = client[db_name] + if roles is None: + db.add_user(user, password, False) + else: + try: + db.add_user(user, password, None, roles=roles) + except: + module.fail_json(msg='"problem adding user; you must be on mongodb 2.4+ and pymongo 2.5+ to use the roles param"') except OperationFailure: - return False + return False return True