Created
May 24, 2017 09:15
-
-
Save n40lab/d64caa8545b5c67c305c485ab3096453 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
vm.config.hardware.device.select { |d| | |
if is_disk?(d) | |
disks.each{|disk| | |
if d.backing.respond_to?(:fileName) && | |
("[#{disk.elements["DATASTORE"].text}] #{disk.elements["SOURCE"].text}" == d.backing.fileName || | |
disk.elements["SOURCE"].text == d.backing.fileName) | |
disks.delete(disk) | |
end | |
} | |
end | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment