mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Feature #1030: Fix onetemplate when no name is provided
This commit is contained in:
parent
85903c2d40
commit
1cd6406dc5
@ -110,7 +110,8 @@ cmd=CommandParser::CmdParser.new(ARGV) do
|
||||
number = options[:multiple] || 1
|
||||
number.times do |i|
|
||||
exit_code=helper.perform_action(args[0],options,"instantiated") do |t|
|
||||
name = options[:vm_name].gsub("%i",i.to_s)
|
||||
name = options[:vm_name]
|
||||
name = name.gsub("%i",i.to_s) if name
|
||||
res = t.instantiate(name)
|
||||
|
||||
if !OpenNebula.is_error?(res)
|
||||
|
Loading…
x
Reference in New Issue
Block a user