Skip to content

Commit 2b87956

Browse files
committed
WIP
1 parent 434b170 commit 2b87956

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

examples/resources/coder_workspace_tags/resource.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ data "coder_workspace_tags" "custom_workspace_tags" {
5151
}
5252
tag {
5353
name = "debug"
54-
value = data.coder_parameter.feature_debug_enabled.value
54+
value = "${data.coder_parameter.feature_debug_enabled.value}"
5555
}
5656
tag {
5757
name = "cache"

provider/workspace_tags.go

-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package provider
22

33
import (
44
"context"
5-
"log"
65

76
"github.com/google/uuid"
87
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
@@ -23,12 +22,6 @@ func workspaceTagDataSource() *schema.Resource {
2322
Description: "Use this data source to configure workspace tags to select provisioners.",
2423
ReadContext: func(ctx context.Context, rd *schema.ResourceData, i interface{}) diag.Diagnostics {
2524
rd.SetId(uuid.NewString())
26-
rawConfig := rd.GetRawConfig()
27-
rawTags, ok := rawConfig.AsValueMap()["tag"]
28-
if !ok {
29-
return diag.Errorf("boom")
30-
}
31-
log.Println(rawTags)
3225
return nil
3326
},
3427
Schema: map[string]*schema.Schema{

0 commit comments

Comments
 (0)