From 998af8949a7d056f1b0f8e7c40ef67fe62d8590e Mon Sep 17 00:00:00 2001 From: Samuel Mutel <12967891+smutel@users.noreply.github.com> Date: Thu, 31 Aug 2023 09:27:43 +0200 Subject: [PATCH] fix: Fix some go report issues --- .github/workflows/master.yml | 4 ++-- .github/workflows/pr.yml | 2 +- .github/workflows/release.yml | 2 +- netbox/dcim/resource_netbox_dcim_site.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 57856050f..9966316b0 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - go: [ '1.21.x' ] + go: ['1.21.x'] steps: - name: Checkout uses: actions/checkout@v3.5.3 @@ -41,7 +41,7 @@ jobs: - name: Go fmt run: | cd "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/terraform-provider-netbox" - find . -name "*.go" -exec go fmt {} \; + find . -name "*.go" -exec gofmt -s -w {} \; shell: bash - name: Go generate diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 873d83b36..daa533da8 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - go: [ '1.21.x' ] + go: ['1.21.x'] steps: - name: Check conventional commits in PR uses: Namchee/conventional-pr@v0.13.0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc3238697..4c7e0f865 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - go: [ '1.21.x' ] + go: ['1.21.x'] steps: - name: Checkout uses: actions/checkout@v3.5.3 diff --git a/netbox/dcim/resource_netbox_dcim_site.go b/netbox/dcim/resource_netbox_dcim_site.go index 6dd136cd4..634bb6dfe 100644 --- a/netbox/dcim/resource_netbox_dcim_site.go +++ b/netbox/dcim/resource_netbox_dcim_site.go @@ -142,7 +142,7 @@ func ResourceNetboxDcimSite() *schema.Resource { Optional: true, Default: "active", ValidateFunc: validation.StringInSlice([]string{"planned", "staging", "active", "decommisioning", "retired"}, false), - Description: "The status of this site. Alowed values: \"active\" (default), \"planned\", \"staging\", \"decommisioning\", \"retired\".", + Description: "The status of this site. Allowed values: \"active\" (default), \"planned\", \"staging\", \"decommisioning\", \"retired\".", }, "tag": &tag.TagSchema, "tenant_id": {