ssg.fixes module
- ssg.fixes.find_platform_line(fix_contents)[source]
Parses the platform configuration item to determine the line number that the platforms configuration option is on. If this key is not found, None is returned instead.
Note that this performs no validation on the contents of the file besides this and does not return the current value of the platform.
If the configuration specification changes any, please update the corresponding parsing in ssg.build_remediations.parse_from_file_with_jinja (…).
- ssg.fixes.get_fix_contents(rule_obj, lang, fix_id)[source]
Returns the tuple (path, contents) of the fix described by the given fix_id or product.