diff options
Diffstat (limited to 'lib/App/Glacier/Command/Jobs.pm')
-rw-r--r-- | lib/App/Glacier/Command/Jobs.pm | 6 |
1 files changed, 4 insertions, 2 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 @@ -135,8 +136,9 @@ sub list { if ($self->glacier->lasterr('code') == 404) { $self->debug(1, "deleting expired $key $vault " . ($descr->{JobDescription} || $descr->{Action}) . - $descr->{JobId}); - $db->delete($key) unless $self->dry_run; + $descr->{JobId}); + App::Glacier::Job->fromdb($self, $vault, $key, $res)->delete() + unless $self->dry_run; return; } else { $self->error("can't describe job $descr->{JobId}: ", |