|
@@ -184,17 +184,17 @@ class BackupRemove extends Command
|
|
|
private function proxmoxCloudVpsProcess($params){
|
|
private function proxmoxCloudVpsProcess($params){
|
|
|
$whmcsParams = di('whmcsParams');
|
|
$whmcsParams = di('whmcsParams');
|
|
|
$whmcsParams->setParams($params);
|
|
$whmcsParams->setParams($params);
|
|
|
|
|
+ unset($this->vm, $this->api, $this->configuration, $this->productId);
|
|
|
|
|
+ $storage = $this->configuration()->getBackupStorage() ? $this->configuration()->getBackupStorage() : 'local';
|
|
|
|
|
|
|
|
logModuleCall(
|
|
logModuleCall(
|
|
|
'ProxmoxCloudVps',
|
|
'ProxmoxCloudVps',
|
|
|
__FUNCTION__,
|
|
__FUNCTION__,
|
|
|
- $this->configuration,
|
|
|
|
|
|
|
+ $this->configuration(),
|
|
|
'Debug remove Backup Cron',
|
|
'Debug remove Backup Cron',
|
|
|
$params
|
|
$params
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
- unset($this->vm, $this->api, $this->configuration, $this->productId);
|
|
|
|
|
- $storage = $this->configuration()->getBackupStorage() ? $this->configuration()->getBackupStorage() : 'local';
|
|
|
|
|
$fileRepository = new FileRepository();
|
|
$fileRepository = new FileRepository();
|
|
|
$fileRepository->setApi($this->api());
|
|
$fileRepository->setApi($this->api());
|
|
|
$fileRepository->findBackupByVmModel(VmModel::ofHostingId($params['serviceid'])->get())
|
|
$fileRepository->findBackupByVmModel(VmModel::ofHostingId($params['serviceid'])->get())
|