|
|
@@ -35,13 +35,13 @@ class Vm extends AbstractClientController
|
|
|
*/
|
|
|
public function index()
|
|
|
{
|
|
|
- $resurceManager = new ResourceManager();
|
|
|
+// $resurceManager = new ResourceManager();
|
|
|
//deaktivate createVM Button in case of lack of ressources
|
|
|
- if($resurceManager->disk()->free() < $resurceManager->disk()->getMin() || $resurceManager->vcpus()->free() < $resurceManager->vcpus()->getMin() || $resurceManager->memory()->free() < $resurceManager->memory()->getMin()) {
|
|
|
+/* if($resurceManager->disk()->free() < $resurceManager->disk()->getMin() || $resurceManager->vcpus()->free() < $resurceManager->vcpus()->getMin() || $resurceManager->memory()->free() < $resurceManager->memory()->getMin()) {
|
|
|
$createButton->addHtmlAttribute("disabled",true);
|
|
|
//delete sidebar button
|
|
|
sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmcreate")->delete();
|
|
|
- }
|
|
|
+ } */
|
|
|
if ($this->getWhmcsParamByKey('status') != 'Active')
|
|
|
{
|
|
|
return;
|