File tree 2 files changed +1
-8
lines changed
examples/resources/coder_workspace_tags
2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ data "coder_workspace_tags" "custom_workspace_tags" {
51
51
}
52
52
tag {
53
53
name = " debug"
54
- value = data. coder_parameter . feature_debug_enabled . value
54
+ value = " ${ data . coder_parameter . feature_debug_enabled . value } "
55
55
}
56
56
tag {
57
57
name = " cache"
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package provider
2
2
3
3
import (
4
4
"context"
5
- "log"
6
5
7
6
"github.com/google/uuid"
8
7
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
@@ -23,12 +22,6 @@ func workspaceTagDataSource() *schema.Resource {
23
22
Description : "Use this data source to configure workspace tags to select provisioners." ,
24
23
ReadContext : func (ctx context.Context , rd * schema.ResourceData , i interface {}) diag.Diagnostics {
25
24
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 )
32
25
return nil
33
26
},
34
27
Schema : map [string ]* schema.Schema {
You can’t perform that action at this time.
0 commit comments