Done testing.

feature/node-rewrite
Sven Slootweg 13 years ago
parent 8443413d4c
commit 95791ace8a

@ -74,7 +74,7 @@ class Node extends CPHPDatabaseRecordClass
public function GetHostname()
{
return $this->ssh->RunCommandCached("hostname2", true)->stdout;
return $this->ssh->RunCommandCached("hostname", true)->stdout;
}
}

@ -14,17 +14,6 @@ $settings['master_pubkey'] = "/etc/cvm/key.pub";
$sNode = new Node(1);
try
{
var_dump($sNode->sRealHostname);
var_dump($sNode->sRealHostname);
var_dump($sNode->sRealHostname);
var_dump($sNode->sRealHostname);
var_dump($sNode->sRealHostname);
var_dump($sNode->sRealHostname);
}
catch (Exception $e)
{
echo("An exception occurred.");
}
var_dump($sNode->sRealHostname);
?>

Loading…
Cancel
Save