Skip to content

Commit

Permalink
Merge pull request #11530 from sluetze/add-kubernetes-rule-indent
Browse files Browse the repository at this point in the history
set indent to 4
  • Loading branch information
marcusburghardt authored Apr 22, 2024
2 parents 3448e46 + 584e57b commit ac2a1ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/add_kubernetes_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def create_base_rule(args, url=None, node_rule=False):

def save_rule(rule_yaml_path, rule_yaml):
with open(rule_yaml_path, 'w') as f:
yaml_contents = yaml.dump(rule_yaml, None, indent=2, sort_keys=False, canonical=False, default_flow_style=False, width=120)
yaml_contents = yaml.dump(rule_yaml, None, indent=4, sort_keys=False, canonical=False, default_flow_style=False, width=120)
# Adds a blank line between keys
formatted_yaml_contents = re.sub(r"\n(\w+:.*)", r"\n\n\1", yaml_contents)

Expand Down

0 comments on commit ac2a1ec

Please sign in to comment.