From 5d248c3dd3f41fa5172a2d29d339b6d2ecaddf45 Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Wed, 29 Sep 2021 15:19:50 +0200 Subject: [PATCH] use space type from req --- changelog/unreleased/space-type-from-request.md | 5 +++++ pkg/storage/utils/decomposedfs/spaces.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/space-type-from-request.md diff --git a/changelog/unreleased/space-type-from-request.md b/changelog/unreleased/space-type-from-request.md new file mode 100644 index 0000000000..a788991395 --- /dev/null +++ b/changelog/unreleased/space-type-from-request.md @@ -0,0 +1,5 @@ +Enhancement: Use space Type from request + +In the decomposedfs we now use the space type from the request when creating a new space. + +https://github.com/cs3org/reva/issues/2134 \ No newline at end of file diff --git a/pkg/storage/utils/decomposedfs/spaces.go b/pkg/storage/utils/decomposedfs/spaces.go index b312ea6854..7bc82296c6 100644 --- a/pkg/storage/utils/decomposedfs/spaces.go +++ b/pkg/storage/utils/decomposedfs/spaces.go @@ -79,7 +79,7 @@ func (fs *Decomposedfs) CreateStorageSpace(ctx context.Context, req *provider.Cr return nil, err } - err = fs.createStorageSpace(ctx, "project", n.ID) + err = fs.createStorageSpace(ctx, req.Type, n.ID) if err != nil { return nil, err }