Commit 20f83afa authored by anarcat's avatar anarcat Committed by anarcat

fix argument checking in grant_host()

parent 633f024c
......@@ -246,7 +246,7 @@ class provisionService_db extends provisionService {
/**
* Return a hostname suitable for database grants from a server object.
*/
function grant_host(provisionServer $server) {
function grant_host(provisionContext_server $server) {
return $server->remote_host;
}
}
......
......@@ -87,7 +87,7 @@ class provisionService_db_mysql extends provisionService_db_pdo {
}
}
function grant_host(provisionServer $server) {
function grant_host(provisionContext_server $server) {
$command = sprintf('mysql -u intntnllyInvalid -h %s -P %s',
escapeshellarg($this->server->remote_host),
escapeshellarg($this->server->db_port));
......
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