cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [32/48] git commit: updated refs/heads/4.9-bountycastle-daan to 98bf0ca
Date Tue, 24 May 2016 09:49:37 GMT
migrate-dynamicroles: use mysql.connector due to #1054

Due to PR #1054 this patch fixes the dynamic-roles migration script
to use the mysql-connector-python dependency.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/05e1db73
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/05e1db73
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/05e1db73

Branch: refs/heads/4.9-bountycastle-daan
Commit: 05e1db7373cd4a17d3101b13d95b1e47c3c0eace
Parents: 20638ca
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Thu May 19 11:36:30 2016 +0530
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Thu May 19 11:36:30 2016 +0530

----------------------------------------------------------------------
 scripts/util/migrate-dynamicroles.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/05e1db73/scripts/util/migrate-dynamicroles.py
----------------------------------------------------------------------
diff --git a/scripts/util/migrate-dynamicroles.py b/scripts/util/migrate-dynamicroles.py
index e97e94c..d2356fb 100755
--- a/scripts/util/migrate-dynamicroles.py
+++ b/scripts/util/migrate-dynamicroles.py
@@ -25,9 +25,9 @@ from contextlib import closing
 from optparse import OptionParser
 
 try:
-    import MySQLdb
+    import mysql.connector
 except ImportError:
-    print("MySQLdb cannot be imported, please install python-mysqldb(apt) or mysql-python(yum)")
+    print("mysql.connector cannot be imported, please install mysql-connector-python")
     sys.exit(1)
 
 dryrun = False
@@ -82,7 +82,7 @@ def main():
     if options.dryrun:
         dryrun = True
 
-    conn = MySQLdb.connect(
+    conn = mysql.connector.connect(
             host=options.host,
             user=options.user,
             passwd=options.password,


Mime
View raw message