tools: make qvm-ls --fields accept property names

Since migration to Admin API, qvm-ls no longer have list of all VM
properties in advance, so can't really validate fields list. Simply
assume that unknown columns are properties.
This commit is contained in:
Marek Marczykowski-Górecki 2017-05-23 13:33:55 +02:00
parent de2f23b9fe
commit f3f85214fc
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -539,9 +539,6 @@ def main(args=None, app=None):
if args.fields:
columns = [col.strip() for col in args.fields.split(',')]
for col in columns:
if col.upper() not in Column.columns:
parser.error('no such column: {!r}'.format(col))
else:
columns = formats[args.format]