From 0352fc9b5febe85bc54cc61b75bc8e510bc7c943 Mon Sep 17 00:00:00 2001 From: Dominik Richter Date: Tue, 26 Sep 2023 23:50:22 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Avoid=20setting=20values=20to=20?= =?UTF-8?q?nil=20on=20GCP=20logging=20resource=20(#1942)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes https://github.com/mondoohq/cnquery/issues/1931 Signed-off-by: Dominik Richter --- providers/gcp/resources/logging.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/providers/gcp/resources/logging.go b/providers/gcp/resources/logging.go index 162890f437..1ff8890021 100644 --- a/providers/gcp/resources/logging.go +++ b/providers/gcp/resources/logging.go @@ -9,6 +9,7 @@ import ( "strings" "go.mondoo.com/cnquery/llx" + "go.mondoo.com/cnquery/providers-sdk/v1/plugin" "go.mondoo.com/cnquery/providers-sdk/v1/util/convert" "go.mondoo.com/cnquery/providers/gcp/connection" "go.mondoo.com/cnquery/types" @@ -319,6 +320,8 @@ func (g *mqlGcpProjectLoggingserviceSink) storageBucket() (*mqlGcpProjectStorage } } } + + g.StorageBucket.State = plugin.StateIsSet | plugin.StateIsNull return nil, nil }