Small fixes and test

feature/node-rewrite
Sven Slootweg 13 years ago
parent 3b37f22ca7
commit 4389720d19

@ -26,7 +26,7 @@ class Container extends CPHPDatabaseRecordClass
), ),
'numeric' => array( 'numeric' => array(
'NodeId' => "NodeId", 'NodeId' => "NodeId",
'TemplateId' => "TemplateId" 'TemplateId' => "TemplateId",
'VirtualizationType' => "VirtualizationType", 'VirtualizationType' => "VirtualizationType",
'DiskSpace' => "DiskSpace", 'DiskSpace' => "DiskSpace",
'GuaranteedRam' => "GuaranteedRam", 'GuaranteedRam' => "GuaranteedRam",

@ -27,7 +27,7 @@ class Template extends CPHPDatabaseRecordClass
), ),
'boolean' => array( 'boolean' => array(
'IsSupported' => "Supported", 'IsSupported' => "Supported",
'IsAvailable' => "Available" 'IsAvailable' => "Available",
'IsOutdated' => "Outdated" 'IsOutdated' => "Outdated"
) )
); );

@ -12,7 +12,10 @@ var_dump($ssh->RunCommand("df -h", true));*/
$settings['master_privkey'] = "/etc/cvm/key"; $settings['master_privkey'] = "/etc/cvm/key";
$settings['master_pubkey'] = "/etc/cvm/key.pub"; $settings['master_pubkey'] = "/etc/cvm/key.pub";
$sNode = new Node(1); /*$sNode = new Node(1);
var_dump($sNode->sDiskFree, $sNode->sDiskUsed, $sNode->sRealHostname); var_dump($sNode->sDiskFree, $sNode->sDiskUsed, $sNode->sRealHostname);*/
$sContainer = new Container(1);
var_dump($sContainer);
?> ?>

Loading…
Cancel
Save