Skip to content

Commit

Permalink
🐛 Avoid setting values to nil on GCP logging resource (#1942)
Browse files Browse the repository at this point in the history
Fixes #1931

Signed-off-by: Dominik Richter <[email protected]>
  • Loading branch information
arlimus authored Sep 27, 2023
1 parent 8973e83 commit 0352fc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions providers/gcp/resources/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -319,6 +320,8 @@ func (g *mqlGcpProjectLoggingserviceSink) storageBucket() (*mqlGcpProjectStorage
}
}
}

g.StorageBucket.State = plugin.StateIsSet | plugin.StateIsNull
return nil, nil
}

Expand Down

0 comments on commit 0352fc9

Please sign in to comment.