diff options
author | Chris Moyer <kopertop@gmail.com> | 2011-06-07 09:22:57 -0400 |
---|---|---|
committer | Chris Moyer <kopertop@gmail.com> | 2011-06-07 09:22:57 -0400 |
commit | 4a1d5fd2c3b7c96ee58ad854847a52d5be013e95 (patch) | |
tree | b9791e24442ee1dc004888adda766269afb9b01f /bin/route53 | |
parent | b786daaa51b11fcb107a18c4b18d88dfadfec33c (diff) | |
download | boto-4a1d5fd2c3b7c96ee58ad854847a52d5be013e95.tar.gz |
Fixed issue with:
https://github.com/boto/boto/commit/3ae689d3fef183d9625db35d21be871cf9cf367f#commitcomment-414946
Diffstat (limited to 'bin/route53')
-rwxr-xr-x | bin/route53 | 7 |
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()) |