diff --git a/PVE/Storage.pm b/PVE/Storage.pm index aa36bad..3aa2100 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -1628,6 +1628,8 @@ sub prune_backups { $keep = PVE::JSONSchema::parse_property_string('prune-backups', $scfg->{'prune-backups'}); } + activate_storage($cfg, $storeid); + my $plugin = PVE::Storage::Plugin->lookup($scfg->{type}); return $plugin->prune_backups($scfg, $storeid, $keep, $vmid, $type, $dryrun, $logfunc); }