Skip to content

Conversation

dominikschubert
Copy link
Member

Fixes a regression introduced in recent CFn refactorings.

PRO overwrites get_resource_type to add support for custom resources, but we didn't use this in get_ref and other call sites, causing this to fail -ext tests.

@dominikschubert dominikschubert added the semver: patch Non-breaking changes which can be included in patch releases label May 15, 2023
@dominikschubert dominikschubert requested a review from simonrw May 15, 2023 10:48
@dominikschubert dominikschubert self-assigned this May 15, 2023
@coveralls
Copy link

coveralls commented May 15, 2023

Coverage Status

Coverage: 82.226% (+0.008%) from 82.218% when pulling c0f9395 on fix_cfn-model-getatts into 70ff10f on master.

@github-actions
Copy link

github-actions bot commented May 15, 2023

LocalStack Community integration with Pro

2 043 tests   1 759 ✔️  1h 26m 30s ⏱️
       2 suites     284 💤
       2 files           0

Results for commit c0f9395.

♻️ This comment has been updated with latest results.

@dominikschubert dominikschubert marked this pull request as ready for review May 15, 2023 17:32
Copy link
Member

@whummer whummer left a comment

Choose a reason for hiding this comment

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

Kudos for greenifying the build @dominikschubert ! 🚀

I have only a small comment/question, but imho we could also address this in a follow-up if we want to get the changes out quickly. 👍

kw["resources"][kw["resource_id"]]["PhysicalResourceId"]
]
},
"parameters": {"InstanceIds": ["InstanceId"]},
Copy link
Member

Choose a reason for hiding this comment

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

nit: If I'm not mistaken, this would create a parameters dict like

{"InstanceIds": "<my-instance-id>"}

instead of

{"InstanceIds": ["<my-instance-id>"]}

Not very intuitive, but that's the current logic in template_deployer.py, if I'm reading it correctly: https://github.com/localstack/localstack/blob/master/localstack/services/cloudformation/engine/template_deployer.py#L920-L922

Copy link
Member Author

Choose a reason for hiding this comment

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

Will fix in a follow-up soon 👍

@dominikschubert dominikschubert merged commit a451f7a into master May 15, 2023
@dominikschubert dominikschubert deleted the fix_cfn-model-getatts branch May 15, 2023 18:03
@dominikschubert dominikschubert removed the request for review from viren-nadkarni May 15, 2023 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants