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
This commit is contained in:
parent
e6ff6884d4
commit
6025437b65
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user