]> git.sur5r.net Git - bacula/bacula/commitdiff
bweb: Display plugin command in the fileset_view page
authorEric Bollengier <eric@baculasystems.com>
Fri, 24 Aug 2012 12:46:53 +0000 (14:46 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:51:01 +0000 (14:51 +0200)
gui/bweb/lib/Bconsole.pm

index 6a3c431727e16eeee1cfe1d4676cfb31352c8baf..dd1b5802804862053726758a883c53afa32a173e 100644 (file)
@@ -376,7 +376,11 @@ sub get_fileset
 
     foreach my $l (split(/\r?\n/, $out)) { 
         #              I /usr/local
-       if ($l =~ /^\s+([I|E])\s+(.+)$/) { # include
+       if ($l =~ /^\s+([O|I|E|P])\s+(.+)$/) { # include
+            # if a plugin, add it to the include list
+            if ($1 eq 'P') {
+                push @{$ret->{'I'}}, { file => $2 };
+            }
            push @{$ret->{$1}}, { file => $2 };
        }
     }