Skip to content

Commit a90e986

Browse files
modular-magiciankotatut
authored andcommitted
Fixes issue #21347 related to google_chronicle_rule_deployment resource (#13130) (GoogleCloudPlatform#3519)
[upstream:fd7a3f65afaeeb3a7fae27e42c5f1664050804e5] Signed-off-by: Modular Magician <[email protected]>
1 parent 819e006 commit a90e986

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tfplan2cai/converters/google/resources/services/chronicle/chronicle_rule_deployment.go

+9
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,20 @@ package chronicle
1919
import (
2020
"reflect"
2121

22+
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
23+
2224
"github.com/GoogleCloudPlatform/terraform-google-conversion/v6/tfplan2cai/converters/google/resources/cai"
2325
"github.com/hashicorp/terraform-provider-google-beta/google-beta/tpgresource"
2426
transport_tpg "github.com/hashicorp/terraform-provider-google-beta/google-beta/transport"
2527
)
2628

29+
func chronicleRuleDeploymentNilRunFrequencyDiffSuppressFunc(_, old, new string, _ *schema.ResourceData) bool {
30+
if new == "" {
31+
return true
32+
}
33+
return false
34+
}
35+
2736
const ChronicleRuleDeploymentAssetType string = "{{location}}-chronicle.googleapis.com/RuleDeployment"
2837

2938
func ResourceConverterChronicleRuleDeployment() cai.ResourceConverter {

0 commit comments

Comments
 (0)