From c3bd524800d51ae0f57d5269115efe5ea5934cb3 Mon Sep 17 00:00:00 2001 From: Mickael Stanislas Date: Thu, 8 Jun 2023 21:30:14 +0200 Subject: [PATCH] fix: network section return --- go.mod | 2 +- internal/client/vapp.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index ba3e4fe6..38ef64d0 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,6 @@ require ( github.com/hashicorp/terraform-plugin-go v0.15.0 github.com/hashicorp/terraform-plugin-log v0.9.0 github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1 - github.com/kr/pretty v0.3.1 github.com/orange-cloudavenue/cloudavenue-sdk-go v0.1.1 github.com/vmware/go-vcloud-director/v2 v2.20.0 golang.org/x/exp v0.0.0-20230321023759-10a507213a29 @@ -55,6 +54,7 @@ require ( github.com/huandu/xstrings v1.4.0 // indirect github.com/iancoleman/strcase v0.2.0 // indirect github.com/imdario/mergo v0.3.15 // indirect + github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.18 // indirect diff --git a/internal/client/vapp.go b/internal/client/vapp.go index e22881be..a6508dd2 100644 --- a/internal/client/vapp.go +++ b/internal/client/vapp.go @@ -3,7 +3,6 @@ package client import ( "fmt" - "github.com/kr/pretty" "github.com/vmware/go-vcloud-director/v2/govcd" ) @@ -60,7 +59,7 @@ func (v VAPP) IsVAPPOrgNetwork(networkName string) (bool, error) { } } - return false, fmt.Errorf("====== network config %s", pretty.Sprint(vAppNetworkConfig)) + return false, nil } // IsVAPPNetwork check if it is a vApp network (not vApp Org Network).