mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
bug #3254: error handling in onetemplate instantiate
This commit is contained in:
parent
377bb8ab92
commit
ba1a556002
@ -196,7 +196,12 @@ cmd=CommandParser::CmdParser.new(ARGV) do
|
||||
on_hold = options[:hold] != nil
|
||||
|
||||
extra_template = ""
|
||||
t.info
|
||||
rc = t.info
|
||||
|
||||
if OpenNebula.is_error?(rc)
|
||||
STDERR.puts rc.message
|
||||
exit(-1)
|
||||
end
|
||||
|
||||
if args[1]
|
||||
extra_template = File.read(args[1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user