ssg.fixes module

ssg.fixes.applicable_platforms(fix_path)[source]
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.

ssg.fixes.get_fix_path(rule_obj, lang, fix_id)[source]

For the given fix_id or product, return the full path to the fix of the given language in the rule described by the given rule_obj.

ssg.fixes.set_applicable_platforms(fix_contents, new_platforms)[source]

Returns a modified contents which updates the platforms to the new platforms.