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:
parent
de2f23b9fe
commit
f3f85214fc
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user