Skip to content

Commit

Permalink
set indent to 4
Browse files Browse the repository at this point in the history
  • Loading branch information
sluetze authored Feb 1, 2024
1 parent 0dabc1a commit 584e57b
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 584e57b

Please sign in to comment.