-
Notifications
You must be signed in to change notification settings - Fork 453
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
Add check for vsphere_virtual_machine
power state
#1407
Conversation
@bill-rich @koikonom @aareet @sumitAgrawal007 Can you guys please look into this PR and provide your comments? Thanks in advance. |
vsphere_virtual_machine
power state
vsphere_virtual_machine
power statevsphere_virtual_machine
power state
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes should also be included for the docs to reflect this capability.
@appilon, I'll pick this one up for code/docs review and testing. I think there are some changes that could be made to address all three states and use the same states as seen in PowerCLI. Ryan |
Hi @sumitmaggo 👋🏻! I've made some modifications to your contribution to account for each Could you rebase and update the Attribute Reference in cc @appilon for milestone review. Ryan Johnson |
@tenthirtyam The PR just needs to add the new field to the docs. Could you take care of that and then I can solve the merge conflict. |
Sure thing. I'll update @sumitmaggo's fork any report back shortly. |
Updated |
Adds support for each `vprops.Runtime.PowerState` - `VirtualMachinePowerStatePoweredOn` - `VirtualMachinePowerStatePoweredOff` - `VirtualMachinePowerStateSuspended` Keeps the terminology simple for the computed attribute. Signed-off-by: Ryan Johnson <[email protected]>
Adds support for each `vprops.Runtime.PowerState` - `VirtualMachinePowerStatePoweredOn` - `VirtualMachinePowerStatePoweredOff` - `VirtualMachinePowerStateSuspended` Keeps the terminology simple for the computed attribute. Signed-off-by: Ryan Johnson <[email protected]>
Add the `power_state` computed attribute to to `r/virtual_machine` docs. Signed-off-by: Ryan Johnson <[email protected]>
5fe6797
to
09f7cf3
Compare
Thanks, Alex! |
This functionality has been released in v2.1.1 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
Added a computed parameter (power_state) for checking the power state of VM and to show the difference in case VM is not in running state.
Related to #916
When VM is not running and we run terraform plan, it will show the following diff:
This is tested with Terraform 0.13.3 version.
Release Note
resource/virtual_machine
: Adds support to check the power state of the resource. [GH-1407]References
Closes #916