Skip to content

Commit

Permalink
fix set_default_template url path
Browse files Browse the repository at this point in the history
  • Loading branch information
smokedlinq committed Nov 9, 2023
1 parent c8754ed commit 45a62ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sonarqube/resource_sonarqube_permissions_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 45a62ed

Please sign in to comment.