Bug #647
CLI -l option fails with an exception when column is unknown
| Status: | Closed | Start date: | 05/17/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 100% | ||
| Category: | CLI | |||
| Target version: | Release 3.0 | |||
| Resolution: | fixed | Pull request: | ||
| Affected Versions: |
Description
client_utilities.rb throws an uncaught exception when an invalid column name is used with the '-l' option.
It should be aware of this and warn the user that the requested columns do not exist.
$ onehost list -l nonexistent
/opennebula/install/lib/ruby/client_utilities.rb:143:in `data_str': undefined method `[]' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `collect'
from /opennebula/install/lib/ruby/client_utilities.rb:139:in `each'
[...]
Associated revisions
feature #647: If the column does not exists using the -l option show an error
History
#1
Updated by Daniel Molina almost 10 years ago
- Status changed from New to Closed
- Assignee changed from Javi Fontan to Daniel Molina
- Target version set to Release 3.0
- % Done changed from 0 to 100
- Resolution set to fixed