mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-26 06:50:09 +03:00
Bug #4347: onehost wilds tables, use the VM_NAME that has to be used to import the VM
This commit is contained in:
parent
cbd2b98756
commit
ef98b0daa2
@ -440,9 +440,7 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
|
||||
wilds.each do |wild|
|
||||
if wild['IMPORT_TEMPLATE']
|
||||
wild_tmplt = Base64::decode64(wild['IMPORT_TEMPLATE']).split("\n")
|
||||
name = wild_tmplt.select { |line|
|
||||
line[/^NAME/]
|
||||
}[0].split("=")[1].gsub("\"", " ").strip
|
||||
name = wild['VM_NAME']
|
||||
import = wild_tmplt.select { |line|
|
||||
line[/^IMPORT_VM_ID/]
|
||||
}[0].split("=")[1].gsub("\"", " ").strip
|
||||
|
Loading…
x
Reference in New Issue
Block a user