]> git.proxmox.com Git - pve-storage.git/commitdiff
prune_backups: fix message
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 20 Aug 2020 11:50:09 +0000 (13:50 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 Aug 2020 15:28:07 +0000 (17:28 +0200)
For prune selections, it doesn't matter what the current time is,
only the timestamps of the backups matter.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/API2/Storage/PruneBackups.pm
PVE/CLI/pvesm.pm

index a84d1c8089b19d6435e86d3bd1d753c99357a990..2509a46ec2e8122a2d6bd96ae88ab422f20ac973 100644 (file)
@@ -16,9 +16,8 @@ __PACKAGE__->register_method ({
     name => 'dryrun',
     path => '',
     method => 'GET',
-    description => "Get prune information for backups. NOTE: this is only a preview and might not be exactly " .
-                  "what a subsequent prune call does, if the hour changes or if backups are removed/added " .
-                  "in the meantime.",
+    description => "Get prune information for backups. NOTE: this is only a preview and might not be " .
+                  "what a subsequent prune call does if backups are removed/added in the meantime.",
     permissions => {
        check => ['perm', '/storage/{storage}', ['Datastore.Audit', 'Datastore.AllocateSpace'], any => 1],
     },
index cc03e3744f85ab8d9630afe8fe45c570f709f011..93ef9776489ee7882d18bbe16e8c125a754d0e6a 100755 (executable)
@@ -932,8 +932,8 @@ our $cmddef = {
 
        return if !$dryrun;
 
-       print "NOTE: this is only a preview and might not be exactly what a subsequent prune call does,\n" .
-             "if the hour changes or if backups are removed/added in the meantime.\n\n";
+       print "NOTE: this is only a preview and might not be what a subsequent\n" .
+             "prune call does if backups are removed/added in the meantime.\n\n";
 
        my @sorted = sort {
            my $vmcmp = PVE::Tools::safe_compare($a->{vmid}, $b->{vmid}, sub { $_[0] <=> $_[1] });