From ee9c1802718cbaca015b2fa2c3ff1a7cdd076458 Mon Sep 17 00:00:00 2001 From: Charlie Conneely Date: Wed, 17 Jul 2024 11:30:36 +0100 Subject: [PATCH] Small change to go vet job in workflow --- .github/workflows/go-checks.yml | 2 +- .../architect_ivr/data_source_genesyscloud_architect_ivr.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go-checks.yml b/.github/workflows/go-checks.yml index 1cfb6adc0..727030950 100644 --- a/.github/workflows/go-checks.yml +++ b/.github/workflows/go-checks.yml @@ -47,7 +47,7 @@ jobs: - name: Vet run: | - if [[ -n $(go vet ./genesyscloud/...) ]]; then + if [[ -n $(go vet ./genesyscloud/... 2>&1) ]]; then echo "go vet highlighted the following:\n" go vet ./genesyscloud/... exit 1 diff --git a/genesyscloud/architect_ivr/data_source_genesyscloud_architect_ivr.go b/genesyscloud/architect_ivr/data_source_genesyscloud_architect_ivr.go index 01e69c1ef..1aa50facb 100644 --- a/genesyscloud/architect_ivr/data_source_genesyscloud_architect_ivr.go +++ b/genesyscloud/architect_ivr/data_source_genesyscloud_architect_ivr.go @@ -18,6 +18,9 @@ func dataSourceIvrRead(ctx context.Context, d *schema.ResourceData, m interface{ sdkConfig := m.(*provider.ProviderMeta).ClientConfig ap := getArchitectIvrProxy(sdkConfig) name := d.Get("name").(string) + + fmt.Printf("%s", 3) + // Query ivr by name. Retry in case search has not yet indexed the ivr. return util.WithRetries(ctx, 15*time.Second, func() *retry.RetryError { id, retryable, resp, err := ap.getArchitectIvrIdByName(ctx, name)