]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #7530 About allpools keyword ignored in cloud truncate command
authorEric Bollengier <eric@baculasystems.com>
Tue, 20 Apr 2021 14:40:28 +0000 (16:40 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:01 +0000 (09:03 +0100)
bacula/src/dird/ua_select.c

index d03a7711e2bc7fc66358214668aee85278173df1..2e19bc6b5dceca6229d4cb70fa4bd3bf17f0722c 100644 (file)
@@ -1626,7 +1626,7 @@ int scan_storage_cmd(UAContext *ua, const char *cmd,
     */
    mr->Enabled = 1;
 
-   if (allfrompool && !has_vol) { /* We need a list of volumes */
+   if ((allpools || allfrompool) && !has_vol) { /* We need a list of volumes */
 
       /* We don't take all pools and we don't have a volume in argument,
        * so we need to choose a pool