Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

findByInstanceUuid method added to Folder #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dralthiace
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant