Skip to content

Commit

Permalink
FIX: [TF] output from Terraform's "cloudconnexa_connector" and from S…
Browse files Browse the repository at this point in the history
…wagger has different value of "ID" field
  • Loading branch information
michaelfmnk committed Jul 29, 2024
1 parent 2352d60 commit febada5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cloudconnexa/data_source_connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ func dataSourceConnector() *schema.Resource {
Description: "Use an `cloudconnexa_connector` data source to read an existing CloudConnexa connector.",
ReadContext: dataSourceConnectorRead,
Schema: map[string]*schema.Schema{
"connector_id": {
Type: schema.TypeString,
Computed: true,
Description: "The connector ID.",
},
"name": {
Type: schema.TypeString,
Required: true,
Expand Down Expand Up @@ -66,6 +71,7 @@ func dataSourceConnectorRead(ctx context.Context, d *schema.ResourceData, m inte
if err != nil {
return append(diags, diag.FromErr(err)...)
}
d.Set("connector_id", connector.Id)
d.Set("name", connector.Name)
d.Set("description", connector.Description)
d.Set("network_item_id", connector.NetworkItemId)
Expand Down

0 comments on commit febada5

Please sign in to comment.