mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
Bug #4608: fix for wrong terminate if VM in vCenter has CDROM attached
This commit is contained in:
parent
08d674fe43
commit
254e8f050c
@ -2003,7 +2003,9 @@ private
|
||||
# Checks if a RbVmomi::VIM::VirtualDevice is a disk
|
||||
########################################################################
|
||||
def self.is_disk?(device)
|
||||
!device.class.ancestors.index(RbVmomi::VIM::VirtualDisk).nil?
|
||||
is_disk = !(device.class.ancestors.index(RbVmomi::VIM::VirtualDisk)).nil?
|
||||
is_cdrom = !(device.class.ancestors.index(RbVmomi::VIM::VirtualCdrom)).nil?
|
||||
is_disk or is_cdrom
|
||||
end
|
||||
|
||||
########################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user