Skip to content

Commit

Permalink
removed kind
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelightning committed Sep 27, 2023
1 parent 8fd2c0a commit f7efcd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions consul/resource_consul_service_defaults_config_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ to see what values are expected`, configEntry.GetKind())
func resourceConsulServiceDefaultsConfigEntryRead(d *schema.ResourceData, meta interface{}) error {
client, qOpts, _ := getClient(d, meta)
configEntries := client.ConfigEntries()
configKind := d.Get("kind").(string)
configKind := KindServiceDefaults
configName := d.Get("name").(string)

fixQOptsForConfigEntry(configName, configKind, qOpts)
Expand All @@ -432,7 +432,7 @@ func resourceConsulServiceDefaultsConfigEntryRead(d *schema.ResourceData, meta i
func resourceConsulServiceDefaultsConfigEntryDelete(d *schema.ResourceData, meta interface{}) error {
client, _, wOpts := getClient(d, meta)
configEntries := client.ConfigEntries()
configKind := d.Get("kind").(string)
configKind := KindServiceDefaults
configName := d.Get("name").(string)

if _, err := configEntries.Delete(configKind, configName, wOpts); err != nil {
Expand Down
4 changes: 2 additions & 2 deletions consul/resource_consul_service_splitter_config_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ to see what values are expected`, configEntry.GetKind())
func resourceConsulServiceSplitterConfigEntryRead(d *schema.ResourceData, meta interface{}) error {
client, qOpts, _ := getClient(d, meta)
configEntries := client.ConfigEntries()
configKind := d.Get("kind").(string)
configKind := KindServiceDefaults
configName := d.Get("name").(string)

fixQOptsForConfigEntry(configName, configKind, qOpts)
Expand All @@ -222,7 +222,7 @@ func resourceConsulServiceSplitterConfigEntryRead(d *schema.ResourceData, meta i
func resourceConsulServiceSplitterConfigEntryDelete(d *schema.ResourceData, meta interface{}) error {
client, _, wOpts := getClient(d, meta)
configEntries := client.ConfigEntries()
configKind := d.Get("kind").(string)
configKind := KindServiceDefaults
configName := d.Get("name").(string)

if _, err := configEntries.Delete(configKind, configName, wOpts); err != nil {
Expand Down

0 comments on commit f7efcd6

Please sign in to comment.