From 0482b4f0bcfc0004ba71ed75dcd074fdc9658640 Mon Sep 17 00:00:00 2001 From: Raviteja <99236372+RavitejaSurampudi@users.noreply.github.com> Date: Tue, 11 Jul 2023 12:07:51 +0530 Subject: [PATCH] fix(data_partition): fix issue with enable attribute (#1034) Co-authored-by: pranav-new-relic --- pkg/logconfigurations/types.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/logconfigurations/types.go b/pkg/logconfigurations/types.go index 59fbd2c5f..a324e9aec 100644 --- a/pkg/logconfigurations/types.go +++ b/pkg/logconfigurations/types.go @@ -421,7 +421,9 @@ type LogConfigurationsUpdateDataPartitionRuleInput struct { // The description of the data partition rule. Description string `json:"description,omitempty"` // Whether or not this data partition rule is enabled. - Enabled bool `json:"enabled,omitempty"` + // NOTE: DO NOT add 'omitempty' to the JSON description of Enabled as fetched from Tutone. + // It omits 'enabled' even if the calling service sends it as 'false', which is why 'omitempty' has been manually discarded. + Enabled bool `json:"enabled"` // Unique data partition rule identifier. ID string `json:"id"` // The criteria of the data partition rule.