Skip to content

Commit

Permalink
fix: Fix some go report issues
Browse files Browse the repository at this point in the history
  • Loading branch information
smutel committed Aug 31, 2023
1 parent 74d4dbd commit 6def597
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ jobs:
with:
go-version: ${{ matrix.go }}

- name: Go fmt
run: |
cd "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/terraform-provider-netbox"
find . -name "*.go" -exec gofmt -s -w {} \;
shell: bash

- name: Build
run: |
cd "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/terraform-provider-netbox"
Expand Down
2 changes: 1 addition & 1 deletion netbox/dcim/resource_netbox_dcim_site.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 1 addition & 0 deletions tools/tools.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build tools
// +build tools

package tools
Expand Down

0 comments on commit 6def597

Please sign in to comment.