rlane/rbvmomi — pull request #18 by dralthiace (2012-04-10 20:01:56+00:00)
Title: findByInstanceUuid method added to Folder

The Folder object already has a method called 'findByUuid' however, in VMWare vCenter the Uuid is not guaranteed to be unique. For many ruby apps this causes a problem.

Added in this commit is a method for 'findByInstanceUuid' which is guaranteed to be unique within a vCenter. This is a small change, tested working and used in production, but not very DRY. It may be better to pass an argument to the original 'findByUuid' method to change the behavior and find InstanceUuid instead.