Skip to content

Commit

Permalink
Updates pkg/sidecar/sidecar.go
Browse files Browse the repository at this point in the history
Co-authored-by: Faisal Memon <fymemon@yahoo.com>
Signed-off-by: Juan Pablo Cabaña <46539158+JU4N98@users.noreply.github.com>
  • Loading branch information
JU4N98 and faisal-memon authored Nov 15, 2023
1 parent 2b3b32c commit ba2cb44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/sidecar/sidecar.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,7 @@ func (s *Sidecar) performJWTSVIDUpdate(options ...workloadapi.ClientOption) (*jw
}

filePath := path.Join(s.config.CertDir, s.config.JWTSvidFilename)
err = os.WriteFile(filePath, []byte(jwtSVID.Marshal()), os.ModePerm)
if err != nil {
if err = os.WriteFile(filePath, []byte(jwtSVID.Marshal()), os.ModePerm); err != nil {
s.config.Log.Errorf("Unable to update JWT SVID: %v", err)
return nil, err
}
Expand Down

0 comments on commit ba2cb44

Please sign in to comment.