|
|
@@ -40,7 +40,6 @@ class ChangePackage extends AddonController
|
|
|
use ProductService;
|
|
|
use WhmcsParams;
|
|
|
use HostingService;
|
|
|
- use ResourceManager;
|
|
|
|
|
|
/**
|
|
|
* @param null $params
|
|
|
@@ -49,22 +48,22 @@ class ChangePackage extends AddonController
|
|
|
*/
|
|
|
public function execute($params = null)
|
|
|
{
|
|
|
-
|
|
|
- $ressource = new ResourceManager();
|
|
|
- logModuleCall(
|
|
|
- 'proxmoxCloud',
|
|
|
- __FUNCTION__,
|
|
|
- $ressource->vcpus(),
|
|
|
- 'Debug',
|
|
|
- $ressource->memory()
|
|
|
- );
|
|
|
-
|
|
|
try {
|
|
|
if(!ProxmoxAddonValidator::isInstalled()){
|
|
|
return ProxmoxAddonValidator::failAsString();
|
|
|
}
|
|
|
(new AppParams())->initFromWhmcsParams();
|
|
|
$this->networkService = new NetworkService();
|
|
|
+
|
|
|
+ $this->ressource = new ResourceManager();
|
|
|
+ logModuleCall(
|
|
|
+ 'proxmoxCloud',
|
|
|
+ __FUNCTION__,
|
|
|
+ $this->ressource->vcpus(),
|
|
|
+ 'Debug',
|
|
|
+ $this->ressource->memory()
|
|
|
+ );
|
|
|
+
|
|
|
//Bandwith limit
|
|
|
$this->saveUsageLimit();
|
|
|
//Assing ip
|