Skip to content

Commit

Permalink
remove tmp dir specification
Browse files Browse the repository at this point in the history
  • Loading branch information
OBoehrer committed Oct 23, 2024
1 parent 1219c28 commit 51709e2
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 @@ -12,7 +12,7 @@ var _ = Describe("RootImage", func() {

Context("Get", func() {
BeforeEach(func() {
targetDirPath, _ = os.MkdirTemp("/tmp", "unpacked-image-")
targetDirPath, _ = os.MkdirTemp("", "unpacked-image-")
})

AfterEach(func() {
Expand Down
2 changes: 1 addition & 1 deletion src/openstack_cpi_golang/cpi/methods/create_stemcell.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (a CreateStemcellMethod) CreateStemcell(
imageID, creationError = a.lightStemcellCreator.Create(imageService, cloudProps)

} else {
tempDirPath, err := os.MkdirTemp("/tmp", "unpacked-image-")
tempDirPath, err := os.MkdirTemp("", "unpacked-image-")
if err != nil {
return apiv1.StemcellCID{}, fmt.Errorf("failed to create temp dir: %w", err)
}
Expand Down

0 comments on commit 51709e2

Please sign in to comment.