Skip to content

Commit

Permalink
Added description to cloudconnexa_connector
Browse files Browse the repository at this point in the history
  • Loading branch information
sahaqaa committed Jul 2, 2024
1 parent bea27d3 commit 2b95e23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cloudconnexa/resource_connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func resourceConnector() *schema.Resource {
"description": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Default: "Managed by Terraform",
ValidateFunc: validation.StringLenBetween(1, 120),
Description: "The display description for this resource. Defaults to `Managed by Terraform`.",
Expand Down Expand Up @@ -78,11 +79,13 @@ func resourceConnectorCreate(ctx context.Context, d *schema.ResourceData, m inte
networkItemId := d.Get("network_item_id").(string)
networkItemType := d.Get("network_item_type").(string)
vpnRegionId := d.Get("vpn_region_id").(string)
description := d.Get("description").(string)
connector := cloudconnexa.Connector{
Name: name,
NetworkItemId: networkItemId,
NetworkItemType: networkItemType,
VpnRegionId: vpnRegionId,
Description: description,

Check failure on line 88 in cloudconnexa/resource_connector.go

View workflow job for this annotation

GitHub Actions / lint

unknown field Description in struct literal of type "github.com/openvpn/cloudconnexa-go-client/v2/cloudconnexa".Connector

Check failure on line 88 in cloudconnexa/resource_connector.go

View workflow job for this annotation

GitHub Actions / lint

unknown field Description in struct literal of type "github.com/openvpn/cloudconnexa-go-client/v2/cloudconnexa".Connector
}
conn, err := c.Connectors.Create(connector, networkItemId)
if err != nil {
Expand Down

0 comments on commit 2b95e23

Please sign in to comment.