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); ?>