Skip to content

Commit

Permalink
Merge pull request #155 from terraform-providers/go-modules-2019-03-14
Browse files Browse the repository at this point in the history
[MODULES] Switch to Go Modules
  • Loading branch information
appilon authored Mar 14, 2019
2 parents bd048bc + 826f18d commit 5d5813d
Show file tree
Hide file tree
Showing 2,772 changed files with 141,782 additions and 1,263,387 deletions.
1 change: 1 addition & 0 deletions .go-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.11.5
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ install:
# packages that live there.
# See: https://github.com/golang/go/issues/12933
- bash scripts/gogetcookie.sh
- go get github.com/kardianos/govendor

script:
- make test
- make vendor-status
- make vet
- make website-test

Expand All @@ -27,3 +25,5 @@ matrix:
fast_finish: true
allow_failures:
- go: tip
env:
- GOFLAGS=-mod=vendor GO111MODULE=on
4 changes: 1 addition & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ fmtcheck:
errcheck:
@sh -c "'$(CURDIR)/scripts/errcheck.sh'"

vendor-status:
@govendor status

test-compile:
@if [ "$(TEST)" = "./..." ]; then \
Expand All @@ -59,5 +57,5 @@ ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
endif
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)

.PHONY: build test testacc vet fmt fmtcheck errcheck vendor-status test-compile website website-test
.PHONY: build test testacc vet fmt fmtcheck errcheck test-compile website website-test

7 changes: 7 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module github.com/terraform-providers/terraform-provider-nsxt

require (
github.com/hashicorp/terraform v0.11.14-0.20190313165547-28810e6c0c0a
github.com/vmware/go-vmware-nsxt v0.0.0-20190201205556-16aa0443042d
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6 // indirect
)
256 changes: 256 additions & 0 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_logical_switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func resourceNsxtLogicalSwitch() *schema.Resource {
Required: true,
ForceNew: true,
},
"vlan": &schema.Schema{
"vlan": {
Type: schema.TypeInt,
Deprecated: "Use nsxt_vlan_logical_switch resource instead",
Optional: true,
Expand Down
12 changes: 6 additions & 6 deletions nsxt/resource_nsxt_vlan_logical_switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ func resourceNsxtVlanLogicalSwitch() *schema.Resource {

Schema: map[string]*schema.Schema{
"revision": getRevisionSchema(),
"description": &schema.Schema{
"description": {
Type: schema.TypeString,
Description: "Description of this resource",
Optional: true,
},
"display_name": &schema.Schema{
"display_name": {
Type: schema.TypeString,
Description: "The display name of this resource. Defaults to ID if not set",
Optional: true,
Expand All @@ -38,24 +38,24 @@ func resourceNsxtVlanLogicalSwitch() *schema.Resource {
"tag": getTagsSchema(),
"address_binding": getAddressBindingsSchema(),
"admin_state": getAdminStateSchema(),
"ip_pool_id": &schema.Schema{
"ip_pool_id": {
Type: schema.TypeString,
Description: "IP pool id that associated with a LogicalSwitch",
Optional: true,
},
"mac_pool_id": &schema.Schema{
"mac_pool_id": {
Type: schema.TypeString,
Description: "Mac pool id that associated with a LogicalSwitch",
Optional: true,
},
"switching_profile_id": getSwitchingProfileIdsSchema(),
"transport_zone_id": &schema.Schema{
"transport_zone_id": {
Type: schema.TypeString,
Description: "Id of the TransportZone to which this LogicalSwitch is associated",
Required: true,
ForceNew: true,
},
"vlan": &schema.Schema{
"vlan": {
Type: schema.TypeInt,
Description: "VLAN Id",
Required: true,
Expand Down
202 changes: 0 additions & 202 deletions vendor/cloud.google.com/go/LICENSE

This file was deleted.

Loading

0 comments on commit 5d5813d

Please sign in to comment.