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

Fixed SetHardwareOptions to fetch the hardware version from QueryConfigOption instead of the default properties #1159

Merged
merged 2 commits into from
Aug 14, 2020

Conversation

arizvisa
Copy link
Contributor

@arizvisa arizvisa commented Aug 6, 2020

Description

When updating a "vsphere_virtual_machine" resource, the logic for SetHardwareVersion is not fetching the version correctly. This results in the hardware version always being updated which prevents any updates of the resource until the machine is powered off.

This is done by implementing the ConfigOptions function which makes a QueryConfigOption request, and then refactoring the implementation of SetHardwareVersion to compare with integers instead of having to convert the summary's attribute to a string.

Acceptance tests

There were no tests for cloning, so I wasn't sure how to proceed.

  • Have you added an acceptance test for the functionality being added?
  • Have you run the acceptance tests on this branch? (If so, please include the test log in a gist)

References

This closes issue #1149.

Copy link
Contributor

@bill-rich bill-rich 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!

@bill-rich bill-rich merged commit 2728e19 into hashicorp:master Aug 14, 2020
@ghost
Copy link

ghost commented Sep 14, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Sep 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants