From 6025437b65c50d52d3685d0a94eb33082dac9cc2 Mon Sep 17 00:00:00 2001 From: Marcus Furlong Date: Wed, 16 Apr 2014 18:58:59 +1000 Subject: [PATCH] designate record-list should display record data 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 --- designateclient/cli/records.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)