Show VPSes on unreachable nodes as offline

feature/node-rewrite
Sven Slootweg 12 years ago
parent 3e6e6e8bd5
commit df925fd194

@ -21,6 +21,15 @@ if($result = mysql_query_cached("SELECT * FROM containers"))
{
$sVps = new Container($row);
try
{
$sStatus = $sVps->sStatusText;
}
catch (SshException $e)
{
$sStatus = "stopped";
}
$sVpsList[] = array(
'id' => $sVps->sId,
'hostname' => $sVps->sHostname,
@ -31,7 +40,7 @@ if($result = mysql_query_cached("SELECT * FROM containers"))
'diskspace-unit' => "GB",
'guaranteed-ram' => $sVps->sGuaranteedRam,
'guaranteed-ram-unit' => "MB",
'status' => $sVps->sStatusText,
'status' => $sStatus,
'virtualization-type' => $sVps->sVirtualizationType
);
}

Loading…
Cancel
Save