Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
drewmullen committed Aug 11, 2022
1 parent 32a9e4b commit f11c196
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/service/networkmanager/attachment_acceptor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func testAccCheckVPCAttachmentDestroy(s *terraform.State) error {

const TestAccVPCConfig_multipleSubnets = `
data "aws_availability_zones" "test" {}
data "aws_region" "test" {}
resource "aws_vpc" "test" {
cidr_block = "10.0.0.0/16"
Expand Down Expand Up @@ -174,7 +175,7 @@ data "aws_networkmanager_core_network_policy_document" "test" {
vpn_ecmp_support = false
asn_ranges = ["64512-64555"]
edge_locations {
location = "us-east-1"
location = data.aws_region.test.name
asn = 64512
}
}
Expand Down
3 changes: 2 additions & 1 deletion internal/service/networkmanager/vpc_attachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ func resourceVPCAttachmentUpdate(ctx context.Context, d *schema.ResourceData, me
if d.HasChange("tags_all") {
o, n := d.GetChange("tags_all")
acnt := meta.(*conns.AWSClient).AccountID
arn := fmt.Sprintf("arn:aws:networkmanager::%s:attachment/%s", acnt, d.Id())
part := meta.(*conns.AWSClient).Partition
arn := fmt.Sprintf("arn:%s:networkmanager::%s:attachment/%s", part, acnt, d.Id())

if err := UpdateTags(conn, arn, o, n); err != nil {
return diag.Errorf("error updating VPC Attachment (%s) tags: %s", d.Id(), err)
Expand Down

0 comments on commit f11c196

Please sign in to comment.