-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Python: provider version bleeds over between resources when reusing same opts object #9801
Labels
kind/bug
Some behavior is incorrect or out of spec
language/python
resolution/fixed
This issue was fixed
Milestone
Comments
allixsenos
added
kind/bug
Some behavior is incorrect or out of spec
needs-triage
Needs attention from the triage team
labels
Jun 7, 2022
Interesting this might be the cause of #9779 as well. |
Frassle
added
language/python
and removed
needs-triage
Needs attention from the triage team
labels
Jun 8, 2022
Can confirm the repro case shows this:
|
I think this might also be the cause of #9548 |
Found it!
That's not a copy of opts, so it's mutating whatever the user passed in. I think we just need a |
Frassle
added a commit
that referenced
this issue
Jun 8, 2022
3 tasks
Frassle
added a commit
that referenced
this issue
Jun 9, 2022
* Make a copy of ResourceOptions before mutating it Fixes #9801 * Add to CHANGELOG * Update golden test data
This was referenced Jun 13, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
kind/bug
Some behavior is incorrect or out of spec
language/python
resolution/fixed
This issue was fixed
What happened?
Instantiating a
pulumi.ResourceOptions
object and then passing it into multiple resources asopts
causes the version of one to bleed over to the other. This causes mayhem with using different providers.Steps to reproduce
Expected Behavior
it deploys two resources
Actual Behavior
Versions used
Additional context
I was following https://www.pulumi.com/learn/abstraction-encapsulation/component-resources/ which says to do
and understood that to mean I was supposed to pass this into each resource I created as-is
full repro case can be downloaded from https://www.dropbox.com/s/va9bht5n5ypho8g/pulumi-opts-repro.tgz?dl=0
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: