Skip to content

Commit

Permalink
Updated go files with make fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan-sss1 committed Jan 15, 2024
1 parent ea0baff commit d7006f0
Show file tree
Hide file tree
Showing 19 changed files with 62 additions and 62 deletions.
4 changes: 2 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ build: fmtcheck

build13: GOOS=$(shell go env GOOS)
build13: GOARCH=$(shell go env GOARCH)
build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(AVI_PROVIDER_NAMESPACE)/22.1.5/$(GOOS)_$(GOARCH)
build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(AVI_PROVIDER_NAMESPACE)/22.1.6/$(GOOS)_$(GOARCH)
build13: fmtcheck
@echo "==> Installing plugin to $(DESTINATION)"
@mkdir -p $(DESTINATION)
go build -o $(DESTINATION)/terraform-provider-avi_v22.1.5
go build -o $(DESTINATION)/terraform-provider-avi_v22.1.6

test: fmtcheck
go test -i $(TEST) || exit 1
Expand Down
2 changes: 1 addition & 1 deletion avi/data_source_avi_customipamdnsprofile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestAVIDataSourceCustomIpamDnsProfileBasic(t *testing.T) {

}

//nolint
// nolint
const testAccAVIDSCustomIpamDnsProfileConfig = `
data "avi_tenant" "default_tenant"{
name= "admin"
Expand Down
2 changes: 1 addition & 1 deletion avi/data_source_avi_dnspolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestAVIDataSourceDnsPolicyBasic(t *testing.T) {

}

//nolint
// nolint
const testAccAVIDSDnsPolicyConfig = `
data "avi_tenant" "default_tenant"{
name= "admin"
Expand Down
2 changes: 1 addition & 1 deletion avi/data_source_avi_ipaddrgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestAVIDataSourceIpAddrGroupBasic(t *testing.T) {

}

//nolint
// nolint
const testAccAVIDSIpAddrGroupConfig = `
data "avi_tenant" "default_tenant"{
name= "admin"
Expand Down
2 changes: 1 addition & 1 deletion avi/data_source_avi_ipamdnsproviderprofile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestAVIDataSourceIpamDnsProviderProfileBasic(t *testing.T) {

}

//nolint
// nolint
const testAccAVIDSIpamDnsProviderProfileConfig = `
data "avi_tenant" "default_tenant"{
name= "admin"
Expand Down
2 changes: 1 addition & 1 deletion avi/datasource_avi_customipamdnsprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

//nolint
// nolint
func dataSourceAviCustomIpamDnsProfile() *schema.Resource {
return &schema.Resource{
Read: ResourceAviCustomIpamDnsProfileRead,
Expand Down
2 changes: 1 addition & 1 deletion avi/datasource_avi_dnspolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

//nolint
// nolint
func dataSourceAviDnsPolicy() *schema.Resource {
return &schema.Resource{
Read: ResourceAviDnsPolicyRead,
Expand Down
2 changes: 1 addition & 1 deletion avi/datasource_avi_dynamicdnsrecord.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

//nolint
// nolint
func dataSourceAviDynamicDnsRecord() *schema.Resource {
return &schema.Resource{
Read: ResourceAviDynamicDnsRecordRead,
Expand Down
2 changes: 1 addition & 1 deletion avi/datasource_avi_ipaddrgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

//nolint
// nolint
func dataSourceAviIpAddrGroup() *schema.Resource {
return &schema.Resource{
Read: ResourceAviIpAddrGroupRead,
Expand Down
2 changes: 1 addition & 1 deletion avi/datasource_avi_ipamdnsproviderprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

//nolint
// nolint
func dataSourceAviIpamDnsProviderProfile() *schema.Resource {
return &schema.Resource{
Read: ResourceAviIpamDnsProviderProfileRead,
Expand Down
14 changes: 7 additions & 7 deletions avi/resource_avi_customipamdnsprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"log"
)

//nolint
// nolint
func ResourceCustomIpamDnsProfileSchema() map[string]*schema.Schema {
return map[string]*schema.Schema{
"configpb_attributes": {
Expand Down Expand Up @@ -43,7 +43,7 @@ func ResourceCustomIpamDnsProfileSchema() map[string]*schema.Schema {
}
}

//nolint
// nolint
func resourceAviCustomIpamDnsProfile() *schema.Resource {
return &schema.Resource{
Create: resourceAviCustomIpamDnsProfileCreate,
Expand All @@ -57,13 +57,13 @@ func resourceAviCustomIpamDnsProfile() *schema.Resource {
}
}

//nolint
// nolint
func ResourceCustomIpamDnsProfileImporter(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error) {
s := ResourceCustomIpamDnsProfileSchema()
return ResourceImporter(d, m, "customipamdnsprofile", s)
}

//nolint
// nolint
func ResourceAviCustomIpamDnsProfileRead(d *schema.ResourceData, meta interface{}) error {
s := ResourceCustomIpamDnsProfileSchema()
err := APIRead(d, meta, "customipamdnsprofile", s)
Expand All @@ -73,7 +73,7 @@ func ResourceAviCustomIpamDnsProfileRead(d *schema.ResourceData, meta interface{
return err
}

//nolint
// nolint
func resourceAviCustomIpamDnsProfileCreate(d *schema.ResourceData, meta interface{}) error {
s := ResourceCustomIpamDnsProfileSchema()
err := APICreateOrUpdate(d, meta, "customipamdnsprofile", s)
Expand All @@ -83,7 +83,7 @@ func resourceAviCustomIpamDnsProfileCreate(d *schema.ResourceData, meta interfac
return err
}

//nolint
// nolint
func resourceAviCustomIpamDnsProfileUpdate(d *schema.ResourceData, meta interface{}) error {
s := ResourceCustomIpamDnsProfileSchema()
var err error
Expand All @@ -94,7 +94,7 @@ func resourceAviCustomIpamDnsProfileUpdate(d *schema.ResourceData, meta interfac
return err
}

//nolint
// nolint
func resourceAviCustomIpamDnsProfileDelete(d *schema.ResourceData, meta interface{}) error {
var err error
if APIDeleteSystemDefaultCheck(d) {
Expand Down
8 changes: 4 additions & 4 deletions avi/resource_avi_customipamdnsprofile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestAVICustomIpamDnsProfileBasic(t *testing.T) {

}

//nolint
// nolint
func testAccCheckAVICustomIpamDnsProfileExists(resourcename string) resource.TestCheckFunc {
return func(s *terraform.State) error {
conn := testAccProvider.Meta().(*clients.AviClient).AviSession
Expand All @@ -67,7 +67,7 @@ func testAccCheckAVICustomIpamDnsProfileExists(resourcename string) resource.Tes

}

//nolint
// nolint
func testAccCheckAVICustomIpamDnsProfileDestroy(s *terraform.State) error {
conn := testAccProvider.Meta().(*clients.AviClient).AviSession
var obj interface{}
Expand All @@ -92,7 +92,7 @@ func testAccCheckAVICustomIpamDnsProfileDestroy(s *terraform.State) error {
return nil
}

//nolint
// nolint
const testAccAVICustomIpamDnsProfileConfig = `
data "avi_tenant" "default_tenant"{
name= "admin"
Expand All @@ -104,7 +104,7 @@ resource "avi_customipamdnsprofile" "testCustomIpamDnsProfile" {
}
`

//nolint
// nolint
const testAccAVICustomIpamDnsProfileupdatedConfig = `
data "avi_tenant" "default_tenant"{
name= "admin"
Expand Down
14 changes: 7 additions & 7 deletions avi/resource_avi_dnspolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"log"
)

//nolint
// nolint
func ResourceDnsPolicySchema() map[string]*schema.Schema {
return map[string]*schema.Schema{
"configpb_attributes": {
Expand Down Expand Up @@ -60,7 +60,7 @@ func ResourceDnsPolicySchema() map[string]*schema.Schema {
}
}

//nolint
// nolint
func resourceAviDnsPolicy() *schema.Resource {
return &schema.Resource{
Create: resourceAviDnsPolicyCreate,
Expand All @@ -74,13 +74,13 @@ func resourceAviDnsPolicy() *schema.Resource {
}
}

//nolint
// nolint
func ResourceDnsPolicyImporter(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error) {
s := ResourceDnsPolicySchema()
return ResourceImporter(d, m, "dnspolicy", s)
}

//nolint
// nolint
func ResourceAviDnsPolicyRead(d *schema.ResourceData, meta interface{}) error {
s := ResourceDnsPolicySchema()
err := APIRead(d, meta, "dnspolicy", s)
Expand All @@ -90,7 +90,7 @@ func ResourceAviDnsPolicyRead(d *schema.ResourceData, meta interface{}) error {
return err
}

//nolint
// nolint
func resourceAviDnsPolicyCreate(d *schema.ResourceData, meta interface{}) error {
s := ResourceDnsPolicySchema()
err := APICreateOrUpdate(d, meta, "dnspolicy", s)
Expand All @@ -100,7 +100,7 @@ func resourceAviDnsPolicyCreate(d *schema.ResourceData, meta interface{}) error
return err
}

//nolint
// nolint
func resourceAviDnsPolicyUpdate(d *schema.ResourceData, meta interface{}) error {
s := ResourceDnsPolicySchema()
var err error
Expand All @@ -111,7 +111,7 @@ func resourceAviDnsPolicyUpdate(d *schema.ResourceData, meta interface{}) error
return err
}

//nolint
// nolint
func resourceAviDnsPolicyDelete(d *schema.ResourceData, meta interface{}) error {
var err error
if APIDeleteSystemDefaultCheck(d) {
Expand Down
8 changes: 4 additions & 4 deletions avi/resource_avi_dnspolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestAVIDnsPolicyBasic(t *testing.T) {

}

//nolint
// nolint
func testAccCheckAVIDnsPolicyExists(resourcename string) resource.TestCheckFunc {
return func(s *terraform.State) error {
conn := testAccProvider.Meta().(*clients.AviClient).AviSession
Expand All @@ -67,7 +67,7 @@ func testAccCheckAVIDnsPolicyExists(resourcename string) resource.TestCheckFunc

}

//nolint
// nolint
func testAccCheckAVIDnsPolicyDestroy(s *terraform.State) error {
conn := testAccProvider.Meta().(*clients.AviClient).AviSession
var obj interface{}
Expand All @@ -92,7 +92,7 @@ func testAccCheckAVIDnsPolicyDestroy(s *terraform.State) error {
return nil
}

//nolint
// nolint
const testAccAVIDnsPolicyConfig = `
data "avi_tenant" "default_tenant"{
name= "admin"
Expand All @@ -104,7 +104,7 @@ resource "avi_dnspolicy" "testDnsPolicy" {
}
`

//nolint
// nolint
const testAccAVIDnsPolicyupdatedConfig = `
data "avi_tenant" "default_tenant"{
name= "admin"
Expand Down
14 changes: 7 additions & 7 deletions avi/resource_avi_dynamicdnsrecord.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"log"
)

//nolint
// nolint
func ResourceDynamicDnsRecordSchema() map[string]*schema.Schema {
return map[string]*schema.Schema{
"algorithm": {
Expand Down Expand Up @@ -119,7 +119,7 @@ func ResourceDynamicDnsRecordSchema() map[string]*schema.Schema {
}
}

//nolint
// nolint
func resourceAviDynamicDnsRecord() *schema.Resource {
return &schema.Resource{
Create: resourceAviDynamicDnsRecordCreate,
Expand All @@ -133,13 +133,13 @@ func resourceAviDynamicDnsRecord() *schema.Resource {
}
}

//nolint
// nolint
func ResourceDynamicDnsRecordImporter(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error) {
s := ResourceDynamicDnsRecordSchema()
return ResourceImporter(d, m, "dynamicdnsrecord", s)
}

//nolint
// nolint
func ResourceAviDynamicDnsRecordRead(d *schema.ResourceData, meta interface{}) error {
s := ResourceDynamicDnsRecordSchema()
err := APIRead(d, meta, "dynamicdnsrecord", s)
Expand All @@ -149,7 +149,7 @@ func ResourceAviDynamicDnsRecordRead(d *schema.ResourceData, meta interface{}) e
return err
}

//nolint
// nolint
func resourceAviDynamicDnsRecordCreate(d *schema.ResourceData, meta interface{}) error {
s := ResourceDynamicDnsRecordSchema()
err := APICreateOrUpdate(d, meta, "dynamicdnsrecord", s)
Expand All @@ -159,7 +159,7 @@ func resourceAviDynamicDnsRecordCreate(d *schema.ResourceData, meta interface{})
return err
}

//nolint
// nolint
func resourceAviDynamicDnsRecordUpdate(d *schema.ResourceData, meta interface{}) error {
s := ResourceDynamicDnsRecordSchema()
var err error
Expand All @@ -170,7 +170,7 @@ func resourceAviDynamicDnsRecordUpdate(d *schema.ResourceData, meta interface{})
return err
}

//nolint
// nolint
func resourceAviDynamicDnsRecordDelete(d *schema.ResourceData, meta interface{}) error {
var err error
if APIDeleteSystemDefaultCheck(d) {
Expand Down
Loading

0 comments on commit d7006f0

Please sign in to comment.