mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 12:22:38 +09:00
F #4913: Only VCENTER_RESOURCE_POOL attribute is used in template importer (only names supported)
This commit is contained in:
1 parent
ab62252167
commit
7248d59ec2
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user