Skip to content

Commit ce1388e

Browse files
committed
Tidy up hastily created function
1 parent 9186bc6 commit ce1388e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/vpc-functions

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,16 +399,19 @@ vpc-default-delete() {
399399
fi
400400
}
401401

402+
402403
subnet-ips() {
403404
# List IP addresses for a subnet along with the resources they are allocated to
404405
#
405406
# USAGE: subnet-ips subnet-id [subnet-id...]
406407
#
407408
# EXAMPLE:
408409
# $ subnet-ips subnet-12345678
409-
# 10.0.1.10 i-abcdef1234567890 EC2 Instance
410+
# 10.0.1.10 i-abcdef1234567890 EC2 Instance
410411
# 10.0.1.20 eni-1234567890abcdef Network Interface
411-
# 10.0.1.30 rds:my-database RDS Instance
412+
# 10.0.1.30 rds:my-database RDS Instance
413+
#
414+
# XXX Tidy up to follow function formatting conventions.
412415

413416
local subnet_ids=$(skim-stdin "$@")
414417
[[ -z "$subnet_ids" ]] && __bma_usage "subnet-id [subnet-id...]" && return 1
@@ -432,6 +435,5 @@ subnet-ips() {
432435
--query "DBInstances[?DBSubnetGroup.Subnets[?SubnetIdentifier=='$subnet_id']].[Endpoint.Address,DBInstanceIdentifier,'RDS Instance']" \
433436
--output text
434437

435-
# Add more resource types here as needed
436438
done | sort -V | columnise
437439
}

0 commit comments

Comments
 (0)