Skip to content

Commit

Permalink
Use provider specified timeout when waiting for config updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Mongey committed Jul 4, 2018
1 parent c7c079a commit 5d1d1ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kafka/resource_kafka_topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ func topicUpdate(d *schema.ResourceData, meta interface{}) error {
}
}

timeout := time.Duration(c.config.Timeout) * time.Second
stateConf := &resource.StateChangeConf{
Pending: []string{"Updating"},
Target: []string{"Ready"},
Refresh: topicRefreshFunc(c, d.Id(), t),
Timeout: 10 * time.Second,
Timeout: timeout,
Delay: 1 * time.Second,
PollInterval: 1 * time.Second,
MinTimeout: 2 * time.Second,
Expand Down

0 comments on commit 5d1d1ac

Please sign in to comment.