Skip to content

Commit

Permalink
add spaceAlias to mountpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
micbar committed Mar 24, 2022
1 parent 3e08844 commit e35a9a4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ func (s *service) ListStorageSpaces(ctx context.Context, req *provider.ListStora
// for now use the name from the share to override the name determined by stat
if receivedShare.MountPoint != nil {
space.Name = receivedShare.MountPoint.Path
space.Opaque = utils.AppendPlainToOpaque(space.Opaque, "spaceAlias", space.SpaceType+"/"+strings.ReplaceAll(strings.ToLower(space.Name), " ", "-"))
}

// what if we don't have a name?
Expand Down

0 comments on commit e35a9a4

Please sign in to comment.