From 65b9243056eb8b1944b11bc1648438b70f372bf8 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 17 Dec 2015 13:45:04 -0800 Subject: [PATCH] mariadb isn't always the last elemen of the version string --- lib/ansible/modules/database/mysql/mysql_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/database/mysql/mysql_user.py b/lib/ansible/modules/database/mysql/mysql_user.py index 754fd14aac4..d511b808131 100644 --- a/lib/ansible/modules/database/mysql/mysql_user.py +++ b/lib/ansible/modules/database/mysql/mysql_user.py @@ -184,7 +184,7 @@ def server_version_check(cursor): # Currently we have no facility to handle new-style password update on # mariadb and the old-style update continues to work - if version_str.lower().endswith('mariadb'): + if 'mariadb' in version_str.lower(): return True if (int(version[0]) <= 5 and int(version[1]) < 7): return True