diff --git a/client/client.go b/client/client.go index 1ac4d203c..15514fae0 100644 --- a/client/client.go +++ b/client/client.go @@ -143,12 +143,10 @@ func (c *Client) NewRequest(ctx context.Context, method, urlStr string, body int req.Header.Add("Accept", mediaType) req.Header.Add("User-Agent", c.UserAgent) if c.Cookies != nil { - log.Printf("[DEBUG] Adding cookies to request\n") for _, i := range c.Cookies { req.AddCookie(i) } } else { - log.Printf("[DEBUG] Adding basic auth to request\n") req.Header.Add("Authorization", "Basic "+ base64.StdEncoding.EncodeToString([]byte(c.Credentials.Username+":"+c.Credentials.Password))) } diff --git a/nutanix/data_source_nutanix_category_key_test.go b/nutanix/data_source_nutanix_category_key_test.go index 0b43f082d..1ad1c2cd9 100644 --- a/nutanix/data_source_nutanix_category_key_test.go +++ b/nutanix/data_source_nutanix_category_key_test.go @@ -67,5 +67,5 @@ resource "nutanix_category_value" "test_value"{ data "nutanix_category_key" "test_key_value" { - name = nutanix_category_key.test_key_value.name + name = nutanix_category_value.test_value.name //creating implicit dependency }` diff --git a/nutanix/resource_nutanix_subnet_test.go b/nutanix/resource_nutanix_subnet_test.go index c7d994851..6f3b7fcbc 100644 --- a/nutanix/resource_nutanix_subnet_test.go +++ b/nutanix/resource_nutanix_subnet_test.go @@ -1,7 +1,6 @@ package nutanix import ( - "encoding/json" "fmt" "regexp" "strings" @@ -172,9 +171,6 @@ func testAccCheckNutanixSubnetExists(n string) resource.TestCheckFunc { return fmt.Errorf("not found: %s", n) } - pretty, _ := json.MarshalIndent(rs, "", " ") - fmt.Print("\n\n[DEBUG] State of Subnet", string(pretty)) - if rs.Primary.ID == "" { return fmt.Errorf("no ID is set") }