|
|
@@ -128,15 +128,6 @@ class BackupRemove extends Command
|
|
|
$whmcsParams->setParams($params);
|
|
|
unset($this->vm, $this->api, $this->configuration);
|
|
|
$storage = $this->configuration()->getBackupStorage() ? $this->configuration()->getBackupStorage() : 'local';
|
|
|
-
|
|
|
- logModuleCall(
|
|
|
- 'ProxmoxCloudVps',
|
|
|
- __FUNCTION__,
|
|
|
- $storage,
|
|
|
- 'Debug remove Backup Cron',
|
|
|
- $this->configuration()
|
|
|
- );
|
|
|
-
|
|
|
$fileRepository = new FileRepository();
|
|
|
$fileRepository->setApi($this->api());
|
|
|
$fileRepository->findBackup($this->vm())
|
|
|
@@ -195,6 +186,15 @@ class BackupRemove extends Command
|
|
|
$whmcsParams->setParams($params);
|
|
|
unset($this->vm, $this->api, $this->configuration);
|
|
|
$storage = $this->configuration()->getBackupStorage() ? $this->configuration()->getBackupStorage() : 'local';
|
|
|
+
|
|
|
+ logModuleCall(
|
|
|
+ 'ProxmoxCloudVps',
|
|
|
+ __FUNCTION__,
|
|
|
+ $storage,
|
|
|
+ 'Debug remove Backup Cron',
|
|
|
+ $params
|
|
|
+ );
|
|
|
+
|
|
|
$fileRepository = new FileRepository();
|
|
|
$fileRepository->setApi($this->api());
|
|
|
$fileRepository->findBackupByVmModel(VmModel::ofHostingId($params['serviceid'])->get())
|