From 84903c898c5339aff3f81646934e1240563caeaa Mon Sep 17 00:00:00 2001 From: Moritz Sanft <58110325+msanft@users.noreply.github.com> Date: Tue, 11 Jun 2024 13:15:06 +0200 Subject: [PATCH] genpolicy: fix settings path flag name This corrects the warning to point to the \`-j\` flag, which is the correct flag for the JSON settings file. Previously, the warning was confusing, as it pointed to the \`-p\` flag, which specifies to the path for the Rego ruleset. Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> --- src/tools/genpolicy/src/settings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/genpolicy/src/settings.rs b/src/tools/genpolicy/src/settings.rs index 7031ff6126..d88d0ff4ce 100644 --- a/src/tools/genpolicy/src/settings.rs +++ b/src/tools/genpolicy/src/settings.rs @@ -74,7 +74,7 @@ impl Settings { debug!("settings = {:?}", &settings); settings } else { - panic!("Cannot open file {}. Please copy it to the current directory or specify the path to it using the -p parameter.", + panic!("Cannot open file {}. Please copy it to the current directory or specify the path to it using the -j parameter.", json_settings_path); } }