aboutsummaryrefslogtreecommitdiff
path: root/lib/App/Glacier/Command/Sync.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/App/Glacier/Command/Sync.pm')
-rw-r--r--lib/App/Glacier/Command/Sync.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/App/Glacier/Command/Sync.pm b/lib/App/Glacier/Command/Sync.pm
index 1a1fcaf..4904fa6 100644
--- a/lib/App/Glacier/Command/Sync.pm
+++ b/lib/App/Glacier/Command/Sync.pm
@@ -77,13 +77,13 @@ sub sync {
$self, $vault_name,
invalidate => $opts{force});
if ($job->is_completed) {
- my $res = $self->glacier_eval('get_job_output', $vault_name, $job->id);
- if ($self->lasterr) {
- if ($self->lasterr('code') == 404 && !$opts{force}) {
+ my $res = $self->glacier->Get_job_output($vault_name, $job->id);
+ if ($self->glacier->lasterr) {
+ if ($self->glacier->lasterr('code') == 404 && !$opts{force}) {
if ($opts{restart}) {
$self->abend(EX_FAILURE,
"unexpected error after restart:",
- $self->last_error_message);
+ $self->glacier->last_error_message);
}
# Job expired, delete it
# ('mesg' => 'The job ID was not found...)
@@ -92,7 +92,7 @@ sub sync {
} else {
# FIXME
$self->abend(EX_FAILURE, "can't list vault $vault_name: ",
- $self->last_error_message);
+ $self->glacier->last_error_message);
}
}
$res = decode_json($res);

Return to:

Send suggestions and report system problems to the System administrator.