Skip to content

Commit

Permalink
fix scheduler_job_http example (#4280) (#8004)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Dec 11, 2020
1 parent feee345 commit 979b372
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/4280.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
scheduler: Fixed syntax error in the Cloud Scheduler HTTP target example.
```
2 changes: 1 addition & 1 deletion google/resource_cloud_scheduler_job_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ resource "google_cloud_scheduler_job" "job" {
http_target {
http_method = "POST"
uri = "https://example.com/ping"
body = base64encode("{"foo":"bar"}")
body = base64encode("{\"foo\":\"bar\"}")
}
}
`, context)
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/cloud_scheduler_job.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ resource "google_cloud_scheduler_job" "job" {
http_target {
http_method = "POST"
uri = "https://example.com/ping"
body = base64encode("{"foo":"bar"}")
body = base64encode("{\"foo\":\"bar\"}")
}
}
```
Expand Down

0 comments on commit 979b372

Please sign in to comment.