diff options
Diffstat (limited to 'lib/App/Glacier/Command/Jobs.pm')
-rw-r--r-- | lib/App/Glacier/Command/Jobs.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/App/Glacier/Command/Jobs.pm b/lib/App/Glacier/Command/Jobs.pm index 736d713..5a5f488 100644 --- a/lib/App/Glacier/Command/Jobs.pm +++ b/lib/App/Glacier/Command/Jobs.pm @@ -6,6 +6,7 @@ use parent qw(App::Glacier::Command); use Carp; use Data::Dumper; use App::Glacier::Timestamp; +use App::Glacier::Job; =head1 NAME @@ -136,7 +137,8 @@ sub list { $self->debug(1, "deleting expired $key $vault " . ($descr->{JobDescription} || $descr->{Action}) . $descr->{JobId}); - $db->delete($key) unless $self->dry_run; + App::Glacier::Job->fromdb($self, $vault, $key, $res)->delete() + unless $self->dry_run; return; } else { $self->error("can't describe job $descr->{JobId}: ", |