From: Eric Bollengier Date: Fri, 24 Aug 2012 12:46:53 +0000 (+0200) Subject: bweb: Display plugin command in the fileset_view page X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=39cb865965514878368646dd002519db29487f45;p=bacula%2Fbacula bweb: Display plugin command in the fileset_view page --- diff --git a/gui/bweb/lib/Bconsole.pm b/gui/bweb/lib/Bconsole.pm index 6a3c431727..dd1b580280 100644 --- a/gui/bweb/lib/Bconsole.pm +++ b/gui/bweb/lib/Bconsole.pm @@ -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 }; } }