From 4389720d198455f29ee6220fdb241953282a7199 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 29 Apr 2012 09:47:54 +0200 Subject: [PATCH] Small fixes and test --- frontend/classes/class.container.php | 2 +- frontend/classes/class.template.php | 2 +- frontend/test.php | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/classes/class.container.php b/frontend/classes/class.container.php index 5e89f95..79b0f5c 100644 --- a/frontend/classes/class.container.php +++ b/frontend/classes/class.container.php @@ -26,7 +26,7 @@ class Container extends CPHPDatabaseRecordClass ), 'numeric' => array( 'NodeId' => "NodeId", - 'TemplateId' => "TemplateId" + 'TemplateId' => "TemplateId", 'VirtualizationType' => "VirtualizationType", 'DiskSpace' => "DiskSpace", 'GuaranteedRam' => "GuaranteedRam", diff --git a/frontend/classes/class.template.php b/frontend/classes/class.template.php index e14a281..b85505a 100644 --- a/frontend/classes/class.template.php +++ b/frontend/classes/class.template.php @@ -27,7 +27,7 @@ class Template extends CPHPDatabaseRecordClass ), 'boolean' => array( 'IsSupported' => "Supported", - 'IsAvailable' => "Available" + 'IsAvailable' => "Available", 'IsOutdated' => "Outdated" ) ); diff --git a/frontend/test.php b/frontend/test.php index 8cb4577..7c178bf 100644 --- a/frontend/test.php +++ b/frontend/test.php @@ -12,7 +12,10 @@ var_dump($ssh->RunCommand("df -h", true));*/ $settings['master_privkey'] = "/etc/cvm/key"; $settings['master_pubkey'] = "/etc/cvm/key.pub"; -$sNode = new Node(1); -var_dump($sNode->sDiskFree, $sNode->sDiskUsed, $sNode->sRealHostname); +/*$sNode = new Node(1); +var_dump($sNode->sDiskFree, $sNode->sDiskUsed, $sNode->sRealHostname);*/ + +$sContainer = new Container(1); +var_dump($sContainer); ?>