diff options
author | Michael Thompson <michaelnt@gmail.com> | 2011-03-29 11:36:02 +0100 |
---|---|---|
committer | Chris Moyer <kopertop@gmail.com> | 2011-03-29 08:40:27 -0400 |
commit | 021c408a595b288b5f8c656622f05a183bf2f0d3 (patch) | |
tree | 177f16da2744e289cab5f3715af93de3c85f5578 /bin/route53 | |
parent | c6c8a3d7aab58000be855f0e6789240d3ec2e6a2 (diff) | |
download | boto-021c408a595b288b5f8c656622f05a183bf2f0d3.tar.gz |
Improve formatting when printing zone records and listing commands
Diffstat (limited to 'bin/route53')
-rwxr-xr-x | bin/route53 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/route53 b/bin/route53 index 55f86a5c..f6a4c4cb 100755 --- a/bin/route53 +++ b/bin/route53 @@ -35,9 +35,9 @@ 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) - print '%-20s %-20s %-20s %s' % ("Name", "Type", "TTL", "Value(s)") + print '%-40s %-5s %-20s %s' % ("Name", "Type", "TTL", "Value(s)") for record in response: - print '%-20s %-20s %-20s %s' % (record.name, record.type, record.ttl, ",".join(record.resource_records)) + print '%-40s %-5s %-20s %s' % (record.name, record.type, record.ttl, ",".join(record.resource_records)) def add_record(conn, hosted_zone_id, name, type, value, ttl=600, comment=""): @@ -78,7 +78,7 @@ def help(conn, fnc=None): cmd = getattr(self, cname) if inspect.isfunction(cmd): doc = cmd.__doc__ - print "\t%s - %s" % (cname, doc) + print "\t%-20s %s" % (cname, doc) sys.exit(1) |