aboutsummaryrefslogtreecommitdiff
path: root/lib/App/Glacier/Command/Jobs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/App/Glacier/Command/Jobs.pm')
-rw-r--r--lib/App/Glacier/Command/Jobs.pm6
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
@@ -8,2 +8,3 @@ use Data::Dumper;
use App::Glacier::Timestamp;
+use App::Glacier::Job;
@@ -137,4 +138,5 @@ sub list {
($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;

Return to:

Send suggestions and report system problems to the System administrator.