Bug #647

CLI -l option fails with an exception when column is unknown

Added by Carlos Martín about 10 years ago. Updated almost 10 years ago.

Status:ClosedStart date:05/17/2011
Priority:NormalDue date:
Assignee:Daniel Molina% 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

Revision b083a9e4
Added by Daniel Molina almost 10 years ago

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

Also available in: Atom PDF