mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
parent
6424eca905
commit
368e65188b
@ -1075,7 +1075,7 @@ class VirtualMachine < Template
|
||||
custom_spec = vi_client.vim
|
||||
.serviceContent
|
||||
.customizationSpecManager
|
||||
.GetCustomizationSpec(:name => customization.text)
|
||||
.GetCustomizationSpec(:name => customization_spec)
|
||||
|
||||
if custom_spec && (spec = custom_spec.spec)
|
||||
return spec
|
||||
@ -1083,7 +1083,7 @@ class VirtualMachine < Template
|
||||
raise "Error getting customization spec"
|
||||
end
|
||||
rescue
|
||||
raise "Customization spec '#{customization.text}' not found"
|
||||
raise "Customization spec '#{customization_spec}' not found"
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user