From 74013c7dc6ac59f54704320c1bb569c1c79031f9 Mon Sep 17 00:00:00 2001 From: The Magician Date: Wed, 2 Jan 2019 12:44:33 -0800 Subject: [PATCH] uptime check period cannot be updated (#2781) /cc @chrisst fixes #2703 --- google/resource_monitoring_uptime_check_config.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/google/resource_monitoring_uptime_check_config.go b/google/resource_monitoring_uptime_check_config.go index 43735d1a..25db4d15 100644 --- a/google/resource_monitoring_uptime_check_config.go +++ b/google/resource_monitoring_uptime_check_config.go @@ -168,6 +168,7 @@ func resourceMonitoringUptimeCheckConfig() *schema.Resource { "period": { Type: schema.TypeString, Optional: true, + ForceNew: true, Default: "300s", }, "resource_group": { @@ -399,12 +400,6 @@ func resourceMonitoringUptimeCheckConfigUpdate(d *schema.ResourceData, meta inte } else if v, ok := d.GetOkExists("display_name"); !isEmptyValue(reflect.ValueOf(v)) && (ok || !reflect.DeepEqual(v, displayNameProp)) { obj["displayName"] = displayNameProp } - periodProp, err := expandMonitoringUptimeCheckConfigPeriod(d.Get("period"), d, config) - if err != nil { - return err - } else if v, ok := d.GetOkExists("period"); !isEmptyValue(reflect.ValueOf(v)) && (ok || !reflect.DeepEqual(v, periodProp)) { - obj["period"] = periodProp - } timeoutProp, err := expandMonitoringUptimeCheckConfigTimeout(d.Get("timeout"), d, config) if err != nil { return err