diff --git a/go.mod b/go.mod index 44a4f42cc..3556e17a1 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/go-openapi/runtime v0.24.1 github.com/go-openapi/strfmt v0.21.2 github.com/hashicorp/terraform-plugin-sdk/v2 v2.17.0 - github.com/smutel/go-netbox v3.1.1+incompatible + github.com/smutel/go-netbox v3.1.2+incompatible ) require ( diff --git a/go.sum b/go.sum index e60972ac5..4f2b165a3 100644 --- a/go.sum +++ b/go.sum @@ -239,6 +239,8 @@ github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMB github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/smutel/go-netbox v3.1.1+incompatible h1:H+4/jVhl0iaIKGch2tdDLDUArsDg+57TTc1phmm+mNw= github.com/smutel/go-netbox v3.1.1+incompatible/go.mod h1:UlNOimilX5qQkyVvFaDgajexiCRjVqzh1i0r9kQfr+M= +github.com/smutel/go-netbox v3.1.2+incompatible h1:Ku7N3ZbaoUMuhSqp8jxsBy3uiNmRdvJUkeWUjDKE0PA= +github.com/smutel/go-netbox v3.1.2+incompatible/go.mod h1:UlNOimilX5qQkyVvFaDgajexiCRjVqzh1i0r9kQfr+M= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/v_l_a_n_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/v_l_a_n_group.go index 301748e06..f2e75e4c8 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/v_l_a_n_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/v_l_a_n_group.go @@ -68,7 +68,7 @@ type VLANGroup struct { // Scope // Read Only: true - Scope string `json:"scope,omitempty"` + Scope interface{} `json:"scope,omitempty"` // Scope id ScopeID *int64 `json:"scope_id,omitempty"` @@ -266,10 +266,6 @@ func (m *VLANGroup) ContextValidate(ctx context.Context, formats strfmt.Registry res = append(res, err) } - if err := m.contextValidateScope(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateTags(ctx, formats); err != nil { res = append(res, err) } @@ -324,15 +320,6 @@ func (m *VLANGroup) contextValidateLastUpdated(ctx context.Context, formats strf return nil } -func (m *VLANGroup) contextValidateScope(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "scope", "body", string(m.Scope)); err != nil { - return err - } - - return nil -} - func (m *VLANGroup) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Tags); i++ { diff --git a/vendor/modules.txt b/vendor/modules.txt index c93eee1c6..11480b662 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -198,7 +198,7 @@ github.com/oklog/ulid github.com/opentracing/opentracing-go github.com/opentracing/opentracing-go/ext github.com/opentracing/opentracing-go/log -# github.com/smutel/go-netbox v3.1.1+incompatible +# github.com/smutel/go-netbox v3.1.2+incompatible ## explicit github.com/smutel/go-netbox/netbox/client github.com/smutel/go-netbox/netbox/client/circuits