canonical / hotsos

Software analysis toolkit. Define checks in high-level language and leverage library to perform analysis of common Cloud applications.
Apache License 2.0
32 stars 38 forks source link

Support scenarios using jsondecode commands #901

Closed dosaboy closed 3 months ago

dosaboy commented 3 months ago

Some scenarios use jsondecode commands which writes the output to a file. This was failing if the decoded value was a dict so now we re-encode the dict to json if we need to write it to a file. Also ensures that if the search preloaders raise an exception we catch it, log it and move on to.