From 52a950623e183b9ea79db48ea9981b892473561f Mon Sep 17 00:00:00 2001 From: Mandar Kulkarni Date: Fri, 22 Sep 2023 11:17:54 -0700 Subject: [PATCH 1/3] Add logs for debug --- sysdig/internal/client/v2/organization.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdig/internal/client/v2/organization.go b/sysdig/internal/client/v2/organization.go index 133d44f2d..8c8638515 100644 --- a/sysdig/internal/client/v2/organization.go +++ b/sysdig/internal/client/v2/organization.go @@ -5,6 +5,7 @@ import ( "context" "fmt" "io" + "log" "net/http" "google.golang.org/protobuf/encoding/protojson" @@ -100,6 +101,7 @@ func (client *Client) organizationURL(orgId string) string { // local function for protojson based marshal/unmarshal of organization proto func (client *Client) marshalOrg(data *OrganizationSecure) (io.Reader, error) { + log.Printf("Payload %v", data) payload, err := protojson.Marshal(data) return bytes.NewBuffer(payload), err } @@ -113,5 +115,6 @@ func (client *Client) unmarshalOrg(data io.ReadCloser) (*OrganizationSecure, err } err = protojson.Unmarshal(body, result) + log.Printf("Result: %v", result) return result, err } From fa5dc81ed2df653ce2a2cc147d4a32cabcd10d78 Mon Sep 17 00:00:00 2001 From: Mandar Kulkarni Date: Mon, 25 Sep 2023 13:48:00 -0700 Subject: [PATCH 2/3] Remove logs --- sysdig/internal/client/v2/organization.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/sysdig/internal/client/v2/organization.go b/sysdig/internal/client/v2/organization.go index 8c8638515..133d44f2d 100644 --- a/sysdig/internal/client/v2/organization.go +++ b/sysdig/internal/client/v2/organization.go @@ -5,7 +5,6 @@ import ( "context" "fmt" "io" - "log" "net/http" "google.golang.org/protobuf/encoding/protojson" @@ -101,7 +100,6 @@ func (client *Client) organizationURL(orgId string) string { // local function for protojson based marshal/unmarshal of organization proto func (client *Client) marshalOrg(data *OrganizationSecure) (io.Reader, error) { - log.Printf("Payload %v", data) payload, err := protojson.Marshal(data) return bytes.NewBuffer(payload), err } @@ -115,6 +113,5 @@ func (client *Client) unmarshalOrg(data io.ReadCloser) (*OrganizationSecure, err } err = protojson.Unmarshal(body, result) - log.Printf("Result: %v", result) return result, err } From f7f2511e2dc93cd8fb3104bd1cdf0695e18e83e5 Mon Sep 17 00:00:00 2001 From: Mandar Kulkarni Date: Wed, 27 Sep 2023 17:14:14 -0700 Subject: [PATCH 3/3] Remove provider_type from the doc --- website/docs/r/secure_organization.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/website/docs/r/secure_organization.md b/website/docs/r/secure_organization.md index a58589ddd..02ec5c749 100644 --- a/website/docs/r/secure_organization.md +++ b/website/docs/r/secure_organization.md @@ -22,14 +22,12 @@ resource "sysdig_secure_cloud_auth_account" "sample" { } resource "sysdig_secure_organization" "sample" { management_account_id = sysdig_secure_cloud_auth_account.sample.id - provider_type = "PROVIDER_GCP" } ``` ## Argument Reference * `management_account_id` - (Required) Cloud Account created using resource sysdig_secure_cloud_auth_account. -* `provider_type` - (Required) Only `PROVIDER_GCP` is currently supported. ## Attributes Reference