Revision a4ebd726 scripts/gnt-instance
b/scripts/gnt-instance | ||
---|---|---|
244 | 244 |
@return: the desired exit code |
245 | 245 |
|
246 | 246 |
""" |
247 |
if opts.output is None: |
|
248 |
selected_fields = _LIST_DEF_FIELDS |
|
249 |
elif opts.output.startswith("+"): |
|
250 |
selected_fields = _LIST_DEF_FIELDS + opts.output[1:].split(",") |
|
251 |
else: |
|
252 |
selected_fields = opts.output.split(",") |
|
247 |
selected_fields = ParseFields(opts.output, _LIST_DEF_FIELDS) |
|
253 | 248 |
|
254 | 249 |
output = GetClient().QueryInstances(args, selected_fields, opts.do_locking) |
255 | 250 |
|
Also available in: Unified diff