summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Furlong <furlongm@gmail.com>2014-04-16 18:58:59 +1000
committerMarcus Furlong <furlongm@gmail.com>2014-04-16 19:08:13 +1000
commit6025437b65c50d52d3685d0a94eb33082dac9cc2 (patch)
treef17c54f1ff672355b31b9518d905654c9f5f9054
parente6ff6884d48e75c8accebcfebe34c619de560126 (diff)
downloadpython-designateclient-6025437b65c50d52d3685d0a94eb33082dac9cc2.tar.gz
designate record-list should display record data1.0.3
designate record-list currently only displays id, type and name. It would be very useful if the actual data was also displayed, as running a record-get on each id to obtain this information is very time-consuming. This patch improves the output so that it is in the following format: +--------------------------------------+------+-----------------------------+--------------+ | id | type | name | data | +--------------------------------------+------+-----------------------------+--------------+ | 8a6b789b-71bc-43b6-91eb-9a0790ee1052 | A | netapp-c1.rc.nectar.org.au. | 172.22.20.71 | | aa609885-3f8d-4ed6-9de4-3204448281e1 | A | netapp-c2.rc.nectar.org.au. | 172.22.20.72 | +--------------------------------------+------+-----------------------------+--------------+ Change-Id: I9ca85b64505d3331fd0bd458c31163cc243e7b34 Closes-Bug: #1308414
-rw-r--r--designateclient/cli/records.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/designateclient/cli/records.py b/designateclient/cli/records.py
index d9da9d1..3be2b60 100644
--- a/designateclient/cli/records.py
+++ b/designateclient/cli/records.py
@@ -25,7 +25,7 @@ LOG = logging.getLogger(__name__)
class ListRecordsCommand(base.ListCommand):
""" List Records """
- columns = ['id', 'type', 'name']
+ columns = ['id', 'type', 'name', 'data']
def get_parser(self, prog_name):
parser = super(ListRecordsCommand, self).get_parser(prog_name)