Skip to content

Commit

Permalink
Standardize name tags in EC2
Browse files Browse the repository at this point in the history
  • Loading branch information
bporter816 committed Mar 31, 2024
1 parent 9f17301 commit fda31e6
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions ebs_volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ func (e EBSVolumes) Render() {
var name, id, volumeType, size, iops, throughput, attachments, encrypted string
if n, ok := lookupTag(v.Tags, "Name"); ok {
name = n
} else {
name = "-"
}
if v.VolumeId != nil {
id = *v.VolumeId
Expand Down
2 changes: 0 additions & 2 deletions ec2_instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ func (e EC2Instances) Render() {
var name, id, state, publicIP, instanceType, subnetId, keyName string
if n, ok := lookupTag(v.Tags, "Name"); ok {
name = n
} else {
name = "-"
}
if v.InstanceId != nil {
id = *v.InstanceId
Expand Down
2 changes: 0 additions & 2 deletions vpc_internet_gateways.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ func (e VPCInternetGateways) Render() {
var name, id, ownerId, attachments string
if n, ok := lookupTag(v.Tags, "Name"); ok {
name = n
} else {
name = "-"
}
if v.InternetGatewayId != nil {
id = *v.InternetGatewayId
Expand Down
2 changes: 0 additions & 2 deletions vpc_subnets.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ func (e VPCSubnets) Render() {
var name, subnetId, state, availabilityZone, ipv4Cidr, vpcId string
if n, ok := lookupTag(v.Tags, "Name"); ok {
name = n
} else {
name = "-"
}
if v.SubnetId != nil {
subnetId = *v.SubnetId
Expand Down
2 changes: 0 additions & 2 deletions vpc_vpcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ func (e VPCVPCs) Render() {
var name, id, state, ipv4CIDR string
if n, ok := lookupTag(v.Tags, "Name"); ok {
name = n
} else {
name = "-"
}
if v.VpcId != nil {
id = *v.VpcId
Expand Down

0 comments on commit fda31e6

Please sign in to comment.