From be3012ed1d444a0184f2bf520722e6758a848203 Mon Sep 17 00:00:00 2001 From: Jacob Ferriero Date: Tue, 6 Aug 2019 23:10:13 +0000 Subject: [PATCH] Update resource_dataproc_cluster.go.erb Signed-off-by: Modular Magician --- google-beta/resource_dataproc_cluster.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/google-beta/resource_dataproc_cluster.go b/google-beta/resource_dataproc_cluster.go index c301ab4f17..92f98cdc8b 100644 --- a/google-beta/resource_dataproc_cluster.go +++ b/google-beta/resource_dataproc_cluster.go @@ -748,6 +748,7 @@ func resourceDataprocClusterUpdate(d *schema.ResourceData, meta interface{}) err region := d.Get("region").(string) clusterName := d.Get("name").(string) timeoutInMinutes := int(d.Timeout(schema.TimeoutUpdate).Minutes()) + gracefulDecommissionTimeout := d.Get("gracefulDecommisionTimeout").(string) cluster := &dataproc.Cluster{ ClusterName: clusterName, @@ -789,7 +790,7 @@ func resourceDataprocClusterUpdate(d *schema.ResourceData, meta interface{}) err if len(updMask) > 0 { patch := config.clientDataprocBeta.Projects.Regions.Clusters.Patch( project, region, clusterName, cluster) - op, err := patch.UpdateMask(strings.Join(updMask, ",")).Do() + op, err := patch.UpdateMask(strings.Join(updMask, ",")).GracefulDecommissionTimeout(gracefulDecommissionTimeout).Do() if err != nil { return err }