Commit 86cc2e64 authored by Adrian Rossouw's avatar Adrian Rossouw

Catch the other valid error that gives us the grant IP.

parent 47748dc6
......@@ -92,6 +92,9 @@ class provisionService_db_mysql extends provisionService_db_pdo {
if (preg_match("/Access denied for user 'intntnllyInvalid'@'([^']*)'/", implode('', drush_shell_exec_output()), $match)) {
return $match[1];
elseif (preg_match("/Host '([^']*)' is not allowed to connect to/", implode('', drush_shell_exec_output()), $match)) {
return $match[1];
else {
return drush_set_error('PROVISION_DB_CONNECT_FAIL', dt('Dummy connection failed to fail: %msg', array('%msg' => join("\n", drush_shell_exec_output()))));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment