]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl fix drive=
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 10 Sep 2006 14:05:17 +0000 (14:05 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sun, 10 Sep 2006 14:05:17 +0000 (14:05 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3454 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/lib/Bconsole.pm

index deebdc805d6780c3b1036520c0029c79e085d37d..d671ea631be1e976fb0e5422f8dc17c94beeb17d 100644 (file)
@@ -204,15 +204,13 @@ sub label_barcodes
     $arg{drive} = $arg{drive} || '0' ;
     $arg{pool} = $arg{pool} || 'Scratch';
 
-    my $cmd = "label barcodes pool=\"$arg{pool}\" storage=\"$arg{storage}\"";
+    my $cmd = "label barcodes drive=$arg{drive} pool=\"$arg{pool}\" storage=\"$arg{storage}\"";
 
     if ($arg{slots}) {
        $cmd .= " slots=$arg{slots}";
     }
 
     $self->send("$cmd\n");
-    $self->expect_it('-re', '\[0\]\s*:');
-    $self->send("$arg{drive}\n");
     $self->expect_it('-re', '[?].+\)\s*:');
     my $res = $self->before();
     $self->send("yes\n");