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 access group resource: recreate ag when it is deleted outside terraform #5304

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

kavya498
Copy link
Collaborator

When access group is deleted outside terraform, resource fails with 404.
when error is returned after retry is done in read method, set id to empty to avoid such lifecycle issues.

make testacc TEST=./ibm/service/iamaccessgroup TESTARGS='-run=TestAccIBMIAMAccessGroup_Basic'
...
=== RUN   TestAccIBMIAMAccessGroup_Basic
--- PASS: TestAccIBMIAMAccessGroup_Basic (64.26s)
PASS
ok  	github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/iamaccessgroup	67.286s

@kavya498 kavya498 changed the title fix access group resource: recreate ag when it is deleted outside ter… fix access group resource: recreate ag when it is deleted outside terraform Apr 25, 2024
@hkantare hkantare merged commit 37c1d30 into IBM-Cloud:master Apr 25, 2024
1 check passed
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.

2 participants