Skip to content

Commit

Permalink
fix(psk): change PSK temp key file location
Browse files Browse the repository at this point in the history
Fixes #677
because in compose we map /var/tmp and not /tmp folder

Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb authored Sep 29, 2023
1 parent 9c290e3 commit 20c2cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/backend/nvme_path.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func (s *Server) numberOfPathsForController(controllerName string) int {
}

func (s *Server) keyToTemporaryFile(pskKey []byte) (string, error) {
keyFile, err := s.psk.createTempFile("", "opikey")
keyFile, err := s.psk.createTempFile("/var/tmp", "opikey")
if err != nil {
log.Printf("error: failed to create file for key: %v", err)
return "", status.Error(codes.Internal, "failed to handle key")
Expand Down

0 comments on commit 20c2cb0

Please sign in to comment.