-
Notifications
You must be signed in to change notification settings - Fork 769
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
[BUG]: repository_ruleset crash on empty required_deployment_environments #1915
Comments
Still getting the same error.
|
That's interesting. I've done the following just now:
Is there anything else you can share that might help in figuring this out? Did the configuration you're trying to apply change since you initially posted the issue? Update: @lewismiddleton Looks like using |
@o-sama and @lewismiddleton thank you for the sleuthing here. @o-sama no worries, I missed it too; thank you for the followup! ❤️ |
Thanks for figuring this out. You're right I was getting this failure in the context of creating a new repository rule. |
I had to step away for a bit due to some health issues, apologies for the delay with this. I'll try to get it out in the next day or two 🙂 |
@o-sama I hope you're feeling better! Thank you for all your hard work on our provider. |
Expected Behavior
Should define an empty list of required deployments.
Equivalent of ticking the box in the UI but not specifying anything. See screenshot
Actual Behavior
Throws error
Seems like there was an error in repository_rules_utils.go. It fails to cast the
required_deployments
block to a map of strings becausev[0] == nil
.Terraform Version
Terraform v1.5.7
Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
No response
Debug Output
No response
Panic Output
Code of Conduct
The text was updated successfully, but these errors were encountered: