summaryrefslogtreecommitdiff
path: root/bin/route53
diff options
context:
space:
mode:
authorChris Moyer <kopertop@gmail.com>2011-06-07 09:22:57 -0400
committerChris Moyer <kopertop@gmail.com>2011-06-07 09:22:57 -0400
commit4a1d5fd2c3b7c96ee58ad854847a52d5be013e95 (patch)
treeb9791e24442ee1dc004888adda766269afb9b01f /bin/route53
parentb786daaa51b11fcb107a18c4b18d88dfadfec33c (diff)
downloadboto-4a1d5fd2c3b7c96ee58ad854847a52d5be013e95.tar.gz
Fixed issue with:
https://github.com/boto/boto/commit/3ae689d3fef183d9625db35d21be871cf9cf367f#commitcomment-414946
Diffstat (limited to 'bin/route53')
-rwxr-xr-xbin/route537
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/route53 b/bin/route53
index 2d533fe4..4311e43a 100755
--- a/bin/route53
+++ b/bin/route53
@@ -34,7 +34,12 @@ def ls(conn):
def get(conn, hosted_zone_id, type=None, name=None, maxitems=None):
"""Get all the records for a single zone"""
- response = conn.get_all_rrsets(hosted_zone_id, type, name, maxitems=maxitems)[:]
+ response = conn.get_all_rrsets(hosted_zone_id, type, name, maxitems=maxitems)
+ # If a maximum number of items was set, we limit to that number
+ # by turning the response into an actual list (copying it)
+ # instead of allowing it to page
+ if maxitems:
+ response = response[:]
print '%-40s %-5s %-20s %s' % ("Name", "Type", "TTL", "Value(s)")
for record in response:
print '%-40s %-5s %-20s %s' % (record.name, record.type, record.ttl, record.to_print())