diff --git a/consul/resource_consul_service_defaults_config_entry.go b/consul/resource_consul_service_defaults_config_entry.go index 6ba63471..fa285b98 100644 --- a/consul/resource_consul_service_defaults_config_entry.go +++ b/consul/resource_consul_service_defaults_config_entry.go @@ -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) @@ -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 { diff --git a/consul/resource_consul_service_splitter_config_entry.go b/consul/resource_consul_service_splitter_config_entry.go index ae7abf06..b66fda09 100644 --- a/consul/resource_consul_service_splitter_config_entry.go +++ b/consul/resource_consul_service_splitter_config_entry.go @@ -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) @@ -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 {