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

[python/sdk] - Fix serialization bug if output contains 'items' property #6701

Merged
merged 1 commit into from
Apr 5, 2021

Conversation

komalali
Copy link
Member

@komalali komalali commented Apr 5, 2021

Fixes: #6697

@komalali komalali force-pushed the komalali/fix-python-items-bug branch from 38e95ac to 88441ce Compare April 5, 2021 00:15
@komalali komalali requested a review from justinvp April 5, 2021 15:15
Copy link
Member

@justinvp justinvp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -169,10 +169,10 @@ def massage(attr: Any, seen: List[Any]):
# make sure this is a popo.
if isinstance(attr, dict):
result = {}
for key, value in attr.items():
for key in attr:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment on why we're not using items() here, so we don't accidentally regress in the future?

@komalali komalali force-pushed the komalali/fix-python-items-bug branch from 88441ce to b32db71 Compare April 5, 2021 15:54
@komalali komalali force-pushed the komalali/fix-python-items-bug branch from b32db71 to a323656 Compare April 5, 2021 18:45
@komalali
Copy link
Member Author

komalali commented Apr 5, 2021

Lol just adding that comment has added 4 hours and counting to be able to merge this

@komalali komalali merged commit 5254e3f into master Apr 5, 2021
@pulumi-bot pulumi-bot deleted the komalali/fix-python-items-bug branch April 5, 2021 19:39
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.

[sdk/python] Exception raised when serializing an output type that has "items" as one of the properties
2 participants