Skip to content

Commit

Permalink
Merge pull request #649 from rkoster/relative-local-blobstore
Browse files Browse the repository at this point in the history
Relative local blobstore
  • Loading branch information
rkoster authored May 6, 2024
2 parents 416fd08 + 6cd2210 commit 4d8e736
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions releasedir/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ func (p Provider) newBlobstore(dirPath string) boshblob.DigestBlobstore {

switch provider {
case "local":
blobstorePath, found := options["blobstore_path"].(string)
if found && !filepath.IsAbs(blobstorePath) {
options["blobstore_path"] = filepath.Join(dirPath, blobstorePath)
}
blobstore = boshblob.NewLocalBlobstore(p.fs, p.uuidGen, options)
case "s3":
blobstore = NewS3Blobstore(p.fs, p.uuidGen, options)
Expand Down

0 comments on commit 4d8e736

Please sign in to comment.