Skip to content

Commit 7dc7acb

Browse files
author
rsprooten
authored
Wrap view-rule path in Path()
Fixing issue #1472
1 parent 90aa65a commit 7dc7acb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detection_rules/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def mass_update(ctx, query, metadata, language, field):
161161
@click.pass_context
162162
def view_rule(ctx, rule_file, api_format):
163163
"""View an internal rule or specified rule file."""
164-
rule = RuleCollection().load_file(rule_file)
164+
rule = RuleCollection().load_file(Path(rule_file))
165165

166166
if api_format:
167167
click.echo(json.dumps(rule.contents.to_api_format(), indent=2, sort_keys=True))

0 commit comments

Comments
 (0)