Return correct status when suspended or terminated

feature/node-rewrite
Sven Slootweg 13 years ago
parent 54050535cf
commit aee9034fee

@ -98,6 +98,12 @@ class Container extends CPHPDatabaseRecordClass
}
public function GetCurrentStatus()
{
if($this->sStatus == CVM_STATUS_SUSPENDED || $this->sStatus == CVM_STATUS_TERMINATED)
{
return $this->sStatus;
}
else
{
$command = "vzctl status {$this->sInternalId}";
@ -117,6 +123,7 @@ class Container extends CPHPDatabaseRecordClass
}
}
}
}
public function GetStatusText()
{

Loading…
Cancel
Save