module.fail_json(msg="unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials")
errno,errstr=e.args
module.fail_json(msg="unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials (ERROR: %s%s)"%(errno,errstr))
mysqlvar_val=getvariable(cursor,mysqlvar)
mysqlvar_val=getvariable(cursor,mysqlvar)
ifmysqlvar_valisNone:
ifmysqlvar_valisNone:
module.fail_json(msg="Variable not available \"%s\""%mysqlvar,changed=False)
module.fail_json(msg="Variable not available \"%s\""%mysqlvar,changed=False)