|
|
@ -23,6 +23,15 @@ try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$sContainer = new Container($row);
|
|
|
|
$sContainer = new Container($row);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$sStatus = $sContainer->sStatusText;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (SshException $e)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$sStatus = "unknown";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$sContainerList[] = array(
|
|
|
|
$sContainerList[] = array(
|
|
|
|
'id' => $sContainer->sId,
|
|
|
|
'id' => $sContainer->sId,
|
|
|
|
'hostname' => $sContainer->sHostname,
|
|
|
|
'hostname' => $sContainer->sHostname,
|
|
|
@ -33,7 +42,7 @@ try
|
|
|
|
'diskspace-unit' => "GB",
|
|
|
|
'diskspace-unit' => "GB",
|
|
|
|
'guaranteed-ram' => $sContainer->sGuaranteedRam,
|
|
|
|
'guaranteed-ram' => $sContainer->sGuaranteedRam,
|
|
|
|
'guaranteed-ram-unit' => "MB",
|
|
|
|
'guaranteed-ram-unit' => "MB",
|
|
|
|
'status' => $sContainer->sStatusText,
|
|
|
|
'status' => $sStatus,
|
|
|
|
'virtualization-type' => $sContainer->sVirtualizationType
|
|
|
|
'virtualization-type' => $sContainer->sVirtualizationType
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|