Skip to content

Commit

Permalink
fix pointeR
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelightning committed Oct 3, 2023
1 parent 2260af1 commit 4e35678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consul/resource_consul_config_entry_service_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ func (s *serviceDefaults) Decode(d *schema.ResourceData) (consulapi.ConfigEntry,
}

getEnvoyExtension := func(envoyExtensionMap map[string]interface{}) consulapi.EnvoyExtension {
return &consulapi.EnvoyExtension{
return consulapi.EnvoyExtension{
Name: envoyExtensionMap["name"].(string),
Required: envoyExtensionMap["required"].(bool),
Arguments: envoyExtensionMap["arguments"].(map[string]interface{}),
Expand Down Expand Up @@ -613,7 +613,7 @@ func (s *serviceDefaults) Decode(d *schema.ResourceData) (consulapi.ConfigEntry,

for _, elem := range d.Get("envoy_extensions").([]interface{}) {
envoyExtensionMap := elem.(map[string]interface{})
configEntry.EnvoyExtensions = append(configEntry.EnvoyExtensions, *getEnvoyExtension(envoyExtensionMap))
configEntry.EnvoyExtensions = append(configEntry.EnvoyExtensions, getEnvoyExtension(envoyExtensionMap))
}

destinationList := d.Get("destination").(*schema.Set).List()
Expand Down

0 comments on commit 4e35678

Please sign in to comment.