From 95791ace8a5d664ad6863d0de8e78e43d8a28f7a Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 29 Apr 2012 08:07:28 +0200 Subject: [PATCH] Done testing. --- frontend/classes/class.node.php | 2 +- frontend/test.php | 15 ++------------- 2 files changed, 3 insertions(+), 14 deletions(-) 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); + ?>