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

Ignore esxi_hostname at VM creation when vcenter_hostname is not defined #486

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

keirazhang
Copy link
Contributor

If there is no vcenter_hostname defined in vars/test.yml, vsphere_host_name will be same with esxi_hostname, and common/vm_create.yml will report error like "Unable to find host". It means that esxi_hostname is required when vsphere_host_name = vcenter_hostname for this task. The solution is to ignore esxi_hostname when vsphere_host_name = esxi_hostname.

@keirazhang keirazhang added the bug Something isn't working label Aug 4, 2023
@keirazhang keirazhang added this to the v3.0 milestone Aug 4, 2023
@ZouYuhua
Copy link
Collaborator

ZouYuhua commented Aug 4, 2023

LGTM. @keirazhang

Copy link
Collaborator

@123lzxm 123lzxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@keirazhang keirazhang merged commit 408c44c into vmware:main Aug 4, 2023
@keirazhang keirazhang deleted the fix_esxi_only branch August 15, 2023 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants