فهرست منبع

debug limit snapshots

andre 2 سال پیش
والد
کامیت
687b70c754
1فایلهای تغییر یافته به همراه0 افزوده شده و 14 حذف شده
  1. 0 14
      app/Services/Cloud/ResourceGuard.php

+ 0 - 14
app/Services/Cloud/ResourceGuard.php

@@ -115,20 +115,6 @@ class ResourceGuard
         $snapshotRepository->ignoreCurrent(true);
         //Files limit
         $maxFiles = $this->getWhmcsConfigOption(ConfigurableOption::SNAPSHOTS, $this->configuration()->getSnapshotMaxFiles());
-
-        $testRepository = new SnapshotRepository();
-        $testRepository->setApi($this->api());
-        $testRepository->findByVmModel($cloudSerice->getVmModelWithVmid());
-        $testRepository->ignoreCurrent(true);
-
-        logModuleCall(
-            'ProxmoxCloudVps',
-            __FUNCTION__,
-            $testRepository,
-            'Debug',
-            $snapshotRepository->count()
-        );
-
         if ($maxFiles != "-1" && $snapshotRepository->count() >= $maxFiles)
         {
             throw new \Exception(sl("lang")->tr("The maximum number of snapshots has been exceeded. Please remove the old snapshots."));