ComplianceAsCode/content

View on GitHub
shared/templates/audit_rules_usergroup_modification/template.py

Summary

Maintainability
A
0 mins
Test Coverage
import ssg.utils
import os


def preprocess(data, lang):
    path = data["path"]
    name = ssg.utils.escape_id(os.path.basename(path))
    data["name"] = name
    if lang == "oval":
        data["path"] = path.replace("/", "\\/")
    return data