Our infrastructure code broke after updating Pulum...
# general
a
Our infrastructure code broke after updating Pulumi CLI to 3.153.0.
pulumi.get_organization()
now seems to return
None
despite the function signature stating it should only return
str
.
$ pulumi org
shows that organization is correctly set but that function just isn't returning the organization name anymore.
e
That's unexpected. What version of the python library are you on? Also 3.153?
a
Mismatch in versions indeed turned out to be the culprit with 3.140 of the Python SDK installed in the virtual environment of this particular Pulumi project. Updating SDK also to 3.153 solved the issue. If there are breaking changes or explicit compatability requirements maybe the CLI should be putting out a warning?
e
I don't think there are, this should have worked fine. I'll check if I can see any changes that could of broke this between those versions.
I can't see anything obvious that would have broke this. The setting and parsing logic for the organization looks the same as in in 3.140.
We had another report of this, and manged to track down and fix this. https://github.com/pulumi/pulumi/issues/18768