mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-18 02:42:54 +09:00
feature #1642: bug with --dry option on onevm
This commit is contained in:
1 parent
7913185516
commit
7098562cf2
1 file changed
+5
-4
+5
-4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user