forked from kubev2v/forklift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vsphere: load hosts per source provider
When looking for the configuration of an ESXi host that a certain VM resides on, we query all the hosts in the namespace and then looking for the host by its MOR (Managed Object Reference). This almost always works but it could be wrong when there are several providers within the same namespace that refer to the same host. This is more likely to happen during tests where we define two providers with different propreties for the same vSphere environment. Therefore, adding another check that ensures the host refers to the provider which is the source provider on the plan of the migrated VM, otherwise skip that host. Signed-off-by: Arik Hadas <[email protected]>
- Loading branch information
Showing
3 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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