Skip to content

Commit

Permalink
add d.set of labels in read function
Browse files Browse the repository at this point in the history
  • Loading branch information
megan07 committed Jul 25, 2019
1 parent 255abed commit d6fafed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions third_party/terraform/resources/resource_dataflow_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ func resourceDataflowJobRead(d *schema.ResourceData, meta interface{}) error {
d.Set("state", job.CurrentState)
d.Set("name", job.Name)
d.Set("project", project)
d.Set("labels", job.Labels)

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 d6fafed

Please sign in to comment.