Commit ea1440c1 authored by Michael Hanselmann's avatar Michael Hanselmann

gnt-* list-fields: Show field description

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent cc27265e
......@@ -2608,10 +2608,10 @@ def GenericListFields(resource, fields, separator, header, cl=None):
columns = [
TableColumn("Name", str, False),
TableColumn("Title", str, False),
# TODO: Add field description to master daemon
TableColumn("Description", str, False),
]
rows = [[fdef.name, fdef.title] for fdef in response.fields]
rows = [[fdef.name, fdef.title, fdef.doc] for fdef in response.fields]
for line in FormatTable(rows, columns, header, separator):
ToStdout(line)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment