Skip to content

Commit

Permalink
Modify bundle verification logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasinsaurralde committed Sep 20, 2016
1 parent debb1b2 commit 6647b59
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions coprocess_bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,15 @@ func loadBundleManifest(bundle *Bundle, spec *APISpec, skipVerification bool) (e
return err
}

if !skipVerification {
err = bundle.Verify()
if err != nil {
log.WithFields(logrus.Fields{
"prefix": "main",
}).Info("----> Bundle verification failed: ", spec.CustomMiddlewareBundle)
}
if skipVerification {
return err
}

err = bundle.Verify()
if err != nil {
log.WithFields(logrus.Fields{
"prefix": "main",
}).Info("----> Bundle verification failed: ", spec.CustomMiddlewareBundle)
}

return err
Expand Down

0 comments on commit 6647b59

Please sign in to comment.