Skip to content

Commit

Permalink
issues/248
Browse files Browse the repository at this point in the history
  • Loading branch information
jdamata committed Oct 5, 2024
1 parent 15aac01 commit 026aa39
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions sonarqube/resource_sonarqube_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,13 @@ func resourceSonarqubeProjectRead(d *schema.ResourceData, m interface{}) error {
}

settings := make([]interface{}, len(componentSettings))
for i, s := range componentSettings {
key := s.(map[string]interface{})["key"].(string)
for _, apiSetting := range projectSettings {
if key == apiSetting.Key {
settings[i] = apiSetting.ToMap()
if len(componentSettings) >= 1 {
for i, s := range componentSettings {
key := s.(map[string]interface{})["key"].(string)
for _, apiSetting := range projectSettings {
if key == apiSetting.Key {
settings[i] = apiSetting.ToMap()
}
}
}
}
Expand Down

0 comments on commit 026aa39

Please sign in to comment.