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

fix(profiles): remove os.Exit to avoid oneview TF provider from responding #412

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FalcoSuessgott
Copy link
Contributor

@FalcoSuessgott FalcoSuessgott commented Jan 30, 2024

Terraform fails, because the oneview library simpy os.Exit, instead of returning any error, this prevents us from getting any error messages that causes that error. This PR removes that exit statement and returns proper errors instead:

╷
│ Error: Plugin did not respond
│ 
│   with module.bm4x_server_project.module.hpe_server["CZ224302WY"].oneview_server_profile.this,
│   on ../../modules/hpe_server/oneview.tf line 11, in resource "oneview_server_profile" "this":
│   11: resource "oneview_server_profile" "this" {
│ 
│ The plugin encountered an error, and failed to respond to the
│ plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may
│ contain more details.

@FalcoSuessgott FalcoSuessgott changed the title fix(profiles): remove os.Exit to avoid oneview TF provider from respo… fix(profiles): remove os.Exit to avoid oneview TF provider from responding Jan 30, 2024
@FalcoSuessgott FalcoSuessgott force-pushed the profile_exit branch 4 times, most recently from 50f109c to 29ecfdb Compare January 30, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant