From 9366dfb63e565c9e0901d714be8832fc89b275d6 Mon Sep 17 00:00:00 2001
From: Toshio Kuratomi <toshio@fedoraproject.org>
Date: Thu, 17 Dec 2015 13:45:04 -0800
Subject: [PATCH] mariadb isn't always the last elemen of the version string

---
 database/mysql/mysql_user.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/database/mysql/mysql_user.py b/database/mysql/mysql_user.py
index 95d11a164df..51f6e9ea1d4 100644
--- a/database/mysql/mysql_user.py
+++ b/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