diff --git a/library/mysql_db b/library/mysql_db index 807603a83d..eac18c4aba 100644 --- a/library/mysql_db +++ b/library/mysql_db @@ -131,7 +131,7 @@ def load_mycnf(): return False try: config.readfp(open(mycnf)) - creds = dict(user=config.get('client', 'user'),passwd=config.get('client', 'pass')) + creds = dict(user=config.get('client', 'user'),passwd=config.get('client', 'password')) except (ConfigParser.NoOptionError, IOError): return False return creds diff --git a/library/mysql_user b/library/mysql_user index b9b833e1f6..9317bbdd7a 100644 --- a/library/mysql_user +++ b/library/mysql_user @@ -230,7 +230,7 @@ def load_mycnf(): return False try: config.readfp(open(mycnf)) - creds = dict(user=config.get('client', 'user'),password=config.get('client', 'pass')) + creds = dict(user=config.get('client', 'user'),password=config.get('client', 'password')) except (ConfigParser.NoOptionError, IOError): return False return creds