|
|
@@ -115,6 +115,15 @@ class ResourceGuard
|
|
|
$snapshotRepository->ignoreCurrent(true);
|
|
|
//Files limit
|
|
|
$maxFiles = $this->getWhmcsConfigOption(ConfigurableOption::SNAPSHOTS, $this->configuration()->getSnapshotMaxFiles());
|
|
|
+
|
|
|
+ logModuleCall(
|
|
|
+ 'ProxmoxCloudVps',
|
|
|
+ __FUNCTION__,
|
|
|
+ $maxFiles,
|
|
|
+ '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."));
|