Skip to content

Commit b1d9d7b

Browse files
fixed a undetect change (#5178) (#3599)
Signed-off-by: Modular Magician <[email protected]>
1 parent e582d7c commit b1d9d7b

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

.changelog/5178.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
storage: fixed a undetected change on `days_since_noncurrent_time` of `google_storage_bucket`
3+
```

google-beta/resource_compute_security_policy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/hashicorp/errwrap"
1111
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
1212
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
13-
"google.golang.org/api/compute/v0.beta"
13+
compute "google.golang.org/api/compute/v0.beta"
1414
)
1515

1616
func resourceComputeSecurityPolicy() *schema.Resource {

google-beta/resource_gke_hub_feature_membership_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"testing"
77

8-
dcl "github.com/GoogleCloudPlatform/declarative-resource-client-library/dcl"
8+
"github.com/GoogleCloudPlatform/declarative-resource-client-library/dcl"
99
gkehub "github.com/GoogleCloudPlatform/declarative-resource-client-library/services/google/gkehub/beta"
1010
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
1111
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"

google-beta/resource_storage_bucket.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,6 +1319,10 @@ func resourceGCSBucketLifecycleRuleConditionHash(v interface{}) int {
13191319
buf.WriteString(fmt.Sprintf("%d-", v.(int)))
13201320
}
13211321

1322+
if v, ok := m["days_since_noncurrent_time"]; ok {
1323+
buf.WriteString(fmt.Sprintf("%d-", v.(int)))
1324+
}
1325+
13221326
if v, ok := m["created_before"]; ok {
13231327
buf.WriteString(fmt.Sprintf("%s-", v.(string)))
13241328
}

0 commit comments

Comments
 (0)