1
0
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:
Javi Fontan 2014-10-21 15:04:29 +02:00
parent 377bb8ab92
commit ba1a556002

View File

@ -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])