sub purge_volume
{
- my ($self, @volume) = @_;
+ my ($self, $volume) = @_;
- my $sel = $self->_get_volume(@volume);
+ my $sel = $self->_get_volume($volume);
my $ret;
if ($sel) {
$ret = $self->send_cmd("purge $sel");
sub prune_volume
{
- my ($self, @volume) = @_;
+ my ($self, $volume) = @_;
- my $sel = $self->_get_volume(@volume);
+ my $sel = $self->_get_volume($volume);
my $ret;
if ($sel) {
$ret = $self->send_cmd("prune $sel yes");
my $b = new Bconsole(pref => $self->{info}, timeout => 60);
- $self->display({
- content => $b->purge_volume(@volume),
- title => "Purge media",
- name => "purge volume=" . join(' volume=', @volume),
- }, "command.tpl");
+ foreach my $v (@volume) {
+ $self->display({
+ content => $b->purge_volume($v),
+ title => "Purge media",
+ name => "purge volume=$v",
+ }, "command.tpl");
+ }
$b->close();
}
foreach my $v (@volume) {
$self->display({
- content => $b->prune_volume(@volume),
+ content => $b->prune_volume($v),
title => "Prune volume",
name => "prune volume=$v",
}, "command.tpl");
}
-
$b->close();
}