mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
Fix wrong syntax in vcenter driver
(cherry picked from commit 55e010fed3355f96e93810c542426f20068948c3)
This commit is contained in:
1 parent
4e46f4a618
commit
dec2c73193
1 file changed
+3
-3
@@ -2423,8 +2423,8 @@ private
|
||||
vm.config.hardware.device.select { |d|
|
||||
if is_disk?(d)
|
||||
disks.each{|disk|
|
||||
if d.backing.respond_to? fileName &&
|
||||
disk.elements["SOURCE"].text == d.backing.fileName
|
||||
if d.backing.respond_to?(:fileName) &&
|
||||
disk.elements["SOURCE"].text == d.backing.fileName &&
|
||||
disks.delete(disk)
|
||||
end
|
||||
}
|
||||
@@ -2708,7 +2708,7 @@ private
|
||||
disks.each{ |disk|
|
||||
ds_and_img_name = "[#{disk['DATASTORE']}] #{disk['SOURCE']}"
|
||||
vcenter_disk = vm.config.hardware.device.select { |d| is_disk?(d) &&
|
||||
d.backing.respond_to? fileName &&
|
||||
d.backing.respond_to?(:fileName) &&
|
||||
d.backing.fileName == ds_and_img_name }[0]
|
||||
spec[:deviceChange] << {
|
||||
:operation => :remove,
|
||||
|
||||
Reference in new issue
Block a user