Update plugins/modules/mysql_user.py

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
This commit is contained in:
Daniel Rupp 2021-12-23 12:10:36 +01:00 committed by GitHub
commit ff48f8c916
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -389,9 +389,6 @@ def main():
if mysql_driver is None: if mysql_driver is None:
module.fail_json(msg=mysql_driver_fail_msg) module.fail_json(msg=mysql_driver_fail_msg)
if db_context:
db = 'mysql'
cursor = None cursor = None
try: try:
if check_implicit_admin: if check_implicit_admin: