diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-12-18 20:33:46 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-12-18 20:33:46 +0200 |
commit | 249512af92d3f592ae683279c2cd1f54a7c1a726 (patch) | |
tree | e71528045c19978bac042c7d6f52cc3485d4feea /lib/App/Glacier/Command/Jobs.pm | |
parent | 728992688946fe88173e7cd561456a10c9d23fd8 (diff) | |
download | glacier-249512af92d3f592ae683279c2cd1f54a7c1a726.tar.gz glacier-249512af92d3f592ae683279c2cd1f54a7c1a726.tar.bz2 |
Fix periodic subcommand
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}: ", |