Skip to content

Commit

Permalink
provider: adding Computed: true to id of few data sources, as those s…
Browse files Browse the repository at this point in the history
…hould be marked as computed even if set to optional (#16667)
  • Loading branch information
tbugfinder authored Dec 9, 2020
1 parent cb4c3cf commit 33f5ce0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions aws/data_source_aws_customer_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func dataSourceAwsCustomerGateway() *schema.Resource {
"id": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},

"bgp_asn": {
Expand Down
1 change: 1 addition & 0 deletions aws/data_source_aws_ec2_transit_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func dataSourceAwsEc2TransitGateway() *schema.Resource {
"id": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"owner_id": {
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func dataSourceAwsEc2TransitGatewayPeeringAttachment() *schema.Resource {
"id": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"peer_account_id": {
Type: schema.TypeString,
Expand Down
1 change: 1 addition & 0 deletions aws/data_source_aws_ec2_transit_gateway_route_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func dataSourceAwsEc2TransitGatewayRouteTable() *schema.Resource {
"id": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"transit_gateway_id": {
Type: schema.TypeString,
Expand Down
1 change: 1 addition & 0 deletions aws/data_source_aws_ec2_transit_gateway_vpc_attachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func dataSourceAwsEc2TransitGatewayVpcAttachment() *schema.Resource {
"id": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"ipv6_support": {
Type: schema.TypeString,
Expand Down
1 change: 1 addition & 0 deletions aws/data_source_aws_guardduty_detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func dataSourceAwsGuarddutyDetector() *schema.Resource {
"id": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"status": {
Type: schema.TypeString,
Expand Down

0 comments on commit 33f5ce0

Please sign in to comment.