Skip to content

Commit

Permalink
google_dataflow_job - return more fields on the read (#3880) (#7049)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Aug 18, 2020
1 parent 83fd684 commit 415be2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/3880.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none
dataflow: changed `google_dataflow_job` to return more fields on the read
```
4 changes: 4 additions & 0 deletions google/resource_dataflow_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ func resourceDataflowJobRead(d *schema.ResourceData, meta interface{}) error {
optionsMap := sdkPipelineOptions["options"].(map[string]interface{})
d.Set("template_gcs_path", optionsMap["templateLocation"])
d.Set("temp_gcs_location", optionsMap["tempLocation"])
d.Set("machine_type", optionsMap["machineType"])
d.Set("network", optionsMap["network"])
d.Set("service_account_email", optionsMap["serviceAccountEmail"])
d.Set("additional_experiments", optionsMap["experiments"])

if _, ok := dataflowTerminalStatesMap[job.CurrentState]; ok {
log.Printf("[DEBUG] Removing resource '%s' because it is in state %s.\n", job.Name, job.CurrentState)
Expand Down

0 comments on commit 415be2c

Please sign in to comment.