-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
SSM: Fix bad state caused by invalid PutParameter request #6484
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6484 +/- ##
=======================================
Coverage 96.18% 96.18%
=======================================
Files 800 800
Lines 78546 78549 +3
=======================================
+ Hits 75546 75551 +5
+ Misses 3000 2998 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bblommers: Line 1927 in 73bf110
The fix was to check whether I've added an assertion with 73bf110 which should catch this in the future |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @viren-nadkarni!
This is now part of moto >= 4.1.13.dev39 |
This PR fixes an issue where if PutParameter is called without parameter type, it creates an invalid state within SSM. Consequently, all calls to DescribeParameters break.
It is caused by peeking into a default dict which creates an empty list, which itself is the invalid state.
Related: #6436