Skip to content

Commit

Permalink
Fix issues found by linter
Browse files Browse the repository at this point in the history
  • Loading branch information
shedimon committed Apr 26, 2021
1 parent 2509981 commit dd9e969
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aws/resource_aws_vpc_endpoint_connection_accepter.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func resourceAwsVpcEndpointConnectionAccepterCreate(d *schema.ResourceData, meta
return fmt.Errorf("error waiting for VPC Endpoint (%s) to be accepted by VPC Endpoint Service (%s): %s", vpceID, svcID, err)
}

d.Set("state", aws.StringValue(vpceConn.(ec2.VpcEndpointConnection).VpcEndpointState))
d.Set("state", vpceConn.(ec2.VpcEndpointConnection).VpcEndpointState)

return resourceAwsVpcEndpointConnectionAccepterRead(d, meta)
}
Expand Down Expand Up @@ -139,7 +139,7 @@ func resourceAwsVpcEndpointConnectionAccepterRead(d *schema.ResourceData, meta i
return fmt.Errorf("error reading VPC Endpoint Connection from VPC Endpoint Service (%s) to VPC Endpoint (%s): %s", svcID, vpceID, err)
}

d.Set("state", aws.StringValue(vpceConn.(ec2.VpcEndpointConnection).VpcEndpointState))
d.Set("state", vpceConn.(ec2.VpcEndpointConnection).VpcEndpointState)

return nil
}
Expand Down
4 changes: 3 additions & 1 deletion aws/resource_aws_vpc_endpoint_connection_accepter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ resource "aws_lb" "test" {
}
}
data "aws_partition" "current" {}
resource "aws_vpc_endpoint_service" "test" {
acceptance_required = true
Expand All @@ -229,7 +231,7 @@ resource "aws_vpc_endpoint_service" "test" {
]
allowed_principals = [
"arn:aws:iam::${data.aws_caller_identity.alternate.account_id}:root",
"arn:${data.aws_partition.current.partition}:iam::${data.aws_caller_identity.alternate.account_id}:root",
]
}
Expand Down

0 comments on commit dd9e969

Please sign in to comment.