Bug #3254
onetemplate instantiate fails for nonexistent ids
| Status: | Closed | Start date: | 10/20/2014 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% | ||
| Category: | CLI | |||
| Target version: | Release 4.10 | |||
| Resolution: | fixed | Pull request: | ||
| Affected Versions: | Development |
Description
$ onetemplate show 123456
[TemplateInfo] Error getting virtual machine template [123456].
$ onetemplate instantiate 123456
/usr/lib/one/ruby/cli/one_helper/onetemplate_helper.rb:87:in `get_user_inputs': undefined method `[]' for nil:NilClass (NoMethodError)
from /usr/bin/onetemplate:223:in `block (4 levels) in <main>'
from /usr/lib/one/ruby/cli/one_helper.rb:509:in `call'
from /usr/lib/one/ruby/cli/one_helper.rb:509:in `perform_action'
from /usr/bin/onetemplate:191:in `block (3 levels) in <main>'
from /usr/bin/onetemplate:190:in `times'
from /usr/bin/onetemplate:190:in `block (2 levels) in <main>'
from /usr/lib/one/ruby/cli/command_parser.rb:461:in `call'
from /usr/lib/one/ruby/cli/command_parser.rb:461:in `run'
from /usr/lib/one/ruby/cli/command_parser.rb:88:in `initialize'
from /usr/bin/onetemplate:34:in `new'
from /usr/bin/onetemplate:34:in `<main>'
Associated revisions
bug #3254: error handling in onetemplate instantiate
History
#1
Updated by Javi Fontan over 6 years ago
- Status changed from New to Assigned
- Assignee set to Javi Fontan
#2
Updated by Javi Fontan over 6 years ago
- Status changed from Assigned to Closed
- Resolution set to fixed