Bug #730
ozone and ovdc CLI shouldn't break in show with no numeric argument
Status: | Closed | Start date: | 07/18/2011 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Daniel Molina | % Done: | 100% | |
Category: | - | |||
Target version: | Release 3.0 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: |
Description
Now, the following gives a nasty error
$ ozone show MyZone
Associated revisions
bug #730: Add zone and vdc id format
History
#1 Updated by Ruben S. Montero almost 10 years ago
- Assignee set to Javi Fontan
#2 Updated by Daniel Molina almost 10 years ago
Add a new format to command_parse
set :format, :int, "Integer" do |arg| if arg.match(/^[0123456789]+$/) ? [0,arg] : [-1] end
Change the argument format in onezone
command :show, 'Show information of a particular Zone', :int, [:text, nil] do zone=helper.show_resource(args[0],options)[1]
#3 Updated by Carlos Martín almost 10 years ago
- Assignee deleted (
Javi Fontan)
#4 Updated by Daniel Molina almost 10 years ago
- Status changed from New to Closed
- Assignee set to Daniel Molina
- % Done changed from 0 to 100
- Resolution set to fixed