You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a small issue which I guess the use case itself is not really correct.
The current code doesn't handle the scenario below well. if one uses "directory" to store value. it will cause issue.
/test-path/rds/database
/test-path/rds/database/size
/test-path/rds/database/filePath
The text was updated successfully, but these errors were encountered:
Hi @qguang, thanks for raising this. Can you provide some more detail about the issue you're having - it'd be handy to compare what you have in SSM and what you expect to have returned by the library. Thanks 😊
I pasted code snippet which can be used to reproduce the "issue". Again, I don't think it is a genuine problem. However, it might require some improvement to handle the exception.
`
from pprint import pprint
import boto3
from ssm_parameter_store import EC2ParameterStore
for key, value in ssm_sample.items():
new_parameter = ssm_client.put_parameter(
Name = key,
Value = value,
Description = 'Test SSM', Type = 'String', Overwrite=True,Tier='Standard',DataType='text'
)
parameters = store.get_parameters_with_hierarchy('/test-root-dir/database/', strip_path=True)
Traceback (most recent call last):
File "", line 1, in
File "../lib/python3.8/site-packages/ssm_parameter_store/stores.py", line 87, in get_parameters_with_hierarchy
leafdict[key_segments[-1]] = value
TypeError: 'str' object does not support item assignment
Thanks for this utility.
There is a small issue which I guess the use case itself is not really correct.
The current code doesn't handle the scenario below well. if one uses "directory" to store value. it will cause issue.
/test-path/rds/database
/test-path/rds/database/size
/test-path/rds/database/filePath
The text was updated successfully, but these errors were encountered: