diff --git a/frontend/classes/class.node.php b/frontend/classes/class.node.php index f842952..42ffb7d 100644 --- a/frontend/classes/class.node.php +++ b/frontend/classes/class.node.php @@ -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; } } diff --git a/frontend/test.php b/frontend/test.php index 5426e90..5739dc7 100644 --- a/frontend/test.php +++ b/frontend/test.php @@ -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); + ?>