mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-25 02:50:08 +03:00
F #4913: Only VCENTER_RESOURCE_POOL attribute is used in template importer (only names supported)
This commit is contained in:
parent
ab62252167
commit
7248d59ec2
@ -225,14 +225,14 @@ def self.import_templates(con_ops, options)
|
||||
|
||||
answer = STDIN.gets.strip
|
||||
|
||||
t[:one] << "VCENTER_RP_REF=\"#{t[:rp_list][answer.to_i - 1][:ref]}\"\n"
|
||||
t[:one] << "VCENTER_RESOURCE_POOL=\"#{t[:rp_list][answer.to_i - 1][:name]}\"\n"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if !rp_input.empty?
|
||||
t[:one] << "USER_INPUTS=["
|
||||
t[:one] << "VCENTER_RP_LIST=\"#{rp_input}\"," if !rp_input.empty?
|
||||
t[:one] << "VCENTER_RESOURCE_POOL=\"#{rp_input}\"," if !rp_input.empty?
|
||||
t[:one] = t[:one][0..-2]
|
||||
t[:one] << "]"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user