Skip to content

Commit

Permalink
Merge pull request #258 from fluxcd/fix-unhandled-err
Browse files Browse the repository at this point in the history
Fix unhandled error in signing key retrieval
  • Loading branch information
relu authored Nov 5, 2021
2 parents 933b58c + fe40819 commit 60ce659
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/imageupdateautomation_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ func (r *ImageUpdateAutomationReconciler) Reconcile(ctx context.Context, req ctr

var signingEntity *openpgp.Entity
if gitSpec.Commit.SigningKey != nil {
signingEntity, err = r.getSigningEntity(ctx, auto)
if signingEntity, err = r.getSigningEntity(ctx, auto); err != nil {
failWithError(err)
}
}

// construct the commit message from template and values
Expand Down

0 comments on commit 60ce659

Please sign in to comment.