feature #1642: bug with --dry option on onevm

This commit is contained in:
Javi Fontan committed 2012-11-07 16:23:36 +01:00
1 parent 7913185516
commit 7098562cf2
1 file changed
+5 -4
+5 -4
View File
@@ -140,15 +140,16 @@ cmd=CommandParser::CmdParser.new(ARGV) do
template = res.last
end
if options[:dry]
puts template
exit 0
end
rescue Exception => e
STDERR.puts "Error reading template."
next -1
end
if options[:dry]
puts template
exit 0
end
number.times do
exit_code = helper.create_resource(options) do |vm|
error = vm.allocate(template)