Skip to content

Commit

Permalink
Format outputing XCCDF xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Honny1 committed Feb 12, 2024
1 parent 5fe0ac8 commit 8875821
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ssg/build_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,8 @@ def to_xml_element(self, env_yaml=None, product_cpes=None):
for rule in self.rules.values():
root.append(rule.to_xml_element(env_yaml))

if hasattr(ET, "indent"):
ET.indent(root, space=" ", level=0)
return root

def to_file(self, file_name, env_yaml=None):
Expand Down

0 comments on commit 8875821

Please sign in to comment.