From 9c07916d58cda600b503561993b6656ea1017b98 Mon Sep 17 00:00:00 2001 From: Jack P Date: Thu, 14 Nov 2024 15:07:23 -0700 Subject: [PATCH] fix resourceNamespaceFileDelete URL generation --- internal/provider/resource_namespace_file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/resource_namespace_file.go b/internal/provider/resource_namespace_file.go index fda76ef..5e3940d 100644 --- a/internal/provider/resource_namespace_file.go +++ b/internal/provider/resource_namespace_file.go @@ -153,7 +153,7 @@ func resourceNamespaceFileDelete(ctx context.Context, d *schema.ResourceData, me namespace, filename := namespaceFileConvertId(d.Id()) tenantId := c.TenantId - url := fmt.Sprintf("%s/namespaces/%s/files?path=%s", apiRoot(tenantId), namespace, filename) + url := c.Url + fmt.Sprintf("%s/namespaces/%s/files?path=%s", apiRoot(tenantId), namespace, filename) _, reqErr := c.request("DELETE", url, nil) if reqErr != nil {