From 76092ccaa76706d17965f98b80f90f1b27a93eb7 Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Mon, 18 Nov 2024 17:58:07 +0100 Subject: [PATCH] remove todo --- bundle/config/resources/volume.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundle/config/resources/volume.go b/bundle/config/resources/volume.go index d459f9e1..4d042949 100644 --- a/bundle/config/resources/volume.go +++ b/bundle/config/resources/volume.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "net/url" + "strings" "github.com/databricks/databricks-sdk-go" "github.com/databricks/databricks-sdk-go/marshal" @@ -40,12 +41,11 @@ func (v *Volume) TerraformResourceName() string { return "databricks_volume" } -// TODO: Test unit and manually. Maybe just manually. func (v *Volume) InitializeURL(baseURL url.URL) { if v.ID == "" { return } - baseURL.Path = fmt.Sprintf("explore/data/volumes/%s", v.ID) + baseURL.Path = fmt.Sprintf("explore/data/volumes/%s", strings.ReplaceAll(v.ID, ".", "/")) v.URL = baseURL.String() }