Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[2018.3] Fix to utils/dicttrim.py to honor max_event_size with nested dictionaries #50382
What does this PR do?
Adding _trim_dict_in_dict to utils/dictrim.py to be called from trim_dict when data contains a nested dictionary. This will ensure that values will still be trimmed correctly.
What issues does this PR fix or reference?
Event data that contained nested dictionaries that exceeded the max_event_size would not be trimmed because the size of the key was reported, not the actual data inside the dictionary.
If a nested dictionary is found in the event data dictionary, the
Commits signed with GPG?
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.