PowerCLIGoodies / DRSRule

PowerShell module with support for managing vSphere DRS Rules and Groups
28 stars 9 forks source link

Module init failing for machine with multiple version of PowerCLI available #13

Closed mtboren closed 6 years ago

mtboren commented 6 years ago

In the module initialization code, things fail is the machine on which the DRSRule module is being imported has more than one available version of the VMware.VimAutomation.Core module (like, when the module has been updated and the old version still remains).

This results in "broken module", due to the failure to determine the correct path for VMware.Vim.dll, which is the type definition portion of initialization references.

mtboren commented 6 years ago

Fixed in 6d811ba