-
Notifications
You must be signed in to change notification settings - Fork 93
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
Error handling project and members #356
Error handling project and members #356
Conversation
Hi @naitmare01, there is an issue with the SendRequest function : https://github.com/goharbor/terraform-provider-harbor/blob/main/client/client.go#L88 if we fix that, it will be handle by : https://github.com/goharbor/terraform-provider-harbor/blob/main/provider/resource_project.go#L96 same for other resources |
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.
we need to fix SendRequest function
@flbla I agree that Are there any active issue or PR coming to fix that? I suggest we wait with this PR until that is fixed. |
There is no PR yet. I discovered the bug will reviewing your PR. |
@naitmare01 : #363 |
LGTM! |
I merged #363 |
I think it will work fine. But isn't it more clear if we actually return what the error is about instead of |
if we return an error, it will not handle resources deleted outside of terraform |
It was I who misunderstood you. :) Changed to |
@flbla are you waiting for any more changes from me? |
Signed-off-by: David Berndtsson <[email protected]>
Signed-off-by: David Berndtsson <[email protected]>
Signed-off-by: David Berndtsson <[email protected]>
Signed-off-by: David Berndtsson <[email protected]>
Signed-off-by: flbla <[email protected]>
bdd6a7a
to
3f05046
Compare
This PR introduces error-handling to gracefully update and recreate resources that have been altered outside of Terraform.
This fixes #235