Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong committed Jan 10, 2022
1 parent fbefaf6 commit 22b50e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (s *service) CreateOCMShare(ctx context.Context, req *ocm.CreateOCMShareReq
// token = protocol FIXME!
}

var sharedSecret string = ""
var sharedSecret string
share, err := s.sm.Share(ctx, req.ResourceId, req.Grant, name, req.RecipientMeshProvider, permissions, nil, sharedSecret, sharetype)

if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/ocm/share/sender/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func Send(requestBodyMap map[string]interface{}, pi *ocmprovider.ProviderInfo) e
e = errors.Wrap(e, "sender: error reading request body")
return e
}
err = errors.Wrap(errors.New(fmt.Sprintf("%s: %s", resp.Status, string(respBody))), "sender: error sending create ocm core share post request")
err = errors.Wrap(fmt.Errorf("%s: %s", resp.Status, string(respBody)), "sender: error sending create ocm core share post request")
return err
}
return nil
Expand Down

0 comments on commit 22b50e3

Please sign in to comment.