From 45a62ed2ea6ee842c51047ba6ec61185bb651bf4 Mon Sep 17 00:00:00 2001 From: Adam Weigert Date: Wed, 8 Nov 2023 21:06:04 -0500 Subject: [PATCH] fix set_default_template url path --- sonarqube/resource_sonarqube_permissions_template.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sonarqube/resource_sonarqube_permissions_template.go b/sonarqube/resource_sonarqube_permissions_template.go index 2b61f87e..b03dab9f 100644 --- a/sonarqube/resource_sonarqube_permissions_template.go +++ b/sonarqube/resource_sonarqube_permissions_template.go @@ -100,6 +100,7 @@ func resourceSonarqubePermissionTemplateCreate(d *schema.ResourceData, m interfa // If default is set to true, set this permission template as the default. if d.Get("default").(bool) { + sonarQubeURL = m.(*ProviderConfiguration).sonarQubeURL err = resourceSonarqubePermissionTemplateSetDefault(sonarQubeURL, d.Id(), m) if err != nil { return err @@ -189,6 +190,7 @@ func resourceSonarqubePermissionTemplateUpdate(d *schema.ResourceData, m interfa // If default is set to true, set this permission template as the default. if d.Get("default").(bool) { + sonarQubeURL = m.(*ProviderConfiguration).sonarQubeURL err = resourceSonarqubePermissionTemplateSetDefault(sonarQubeURL, d.Id(), m) if err != nil { return err