From 7dc7acbf22b77564b673bc1d8956599eccc3a03e Mon Sep 17 00:00:00 2001 From: rsprooten Date: Tue, 7 Sep 2021 13:51:04 +0200 Subject: [PATCH] Wrap view-rule path in Path() Fixing issue #1472 --- detection_rules/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detection_rules/main.py b/detection_rules/main.py index 009ddb7daf0..8b6d52474b1 100644 --- a/detection_rules/main.py +++ b/detection_rules/main.py @@ -161,7 +161,7 @@ def mass_update(ctx, query, metadata, language, field): @click.pass_context def view_rule(ctx, rule_file, api_format): """View an internal rule or specified rule file.""" - rule = RuleCollection().load_file(rule_file) + rule = RuleCollection().load_file(Path(rule_file)) if api_format: click.echo(json.dumps(rule.contents.to_api_format(), indent=2, sort_keys=True))