Skip to content

Commit d226a22

Browse files
fix: set default value for coder_ai_task.prompt to an empty string
1 parent a86ce82 commit d226a22

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

integration/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func TestIntegration(t *testing.T) {
216216
minVersion: "v2.26.0",
217217
expectedOutput: map[string]string{
218218
"ai_task.id": `^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$`,
219-
"ai_task.prompt": "default",
219+
"ai_task.prompt": "",
220220
"ai_task.app_id": `^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$`,
221221
"app.id": `^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$`,
222222
},

provider/ai_task.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ func aiTaskResource() *schema.Resource {
4545

4646
if prompt := os.Getenv("CODER_TASK_PROMPT"); prompt != "" {
4747
resourceData.Set("prompt", prompt)
48-
} else {
49-
resourceData.Set("prompt", "default")
5048
}
5149

5250
var (

0 commit comments

Comments
 (0)