Skip to content

Commit

Permalink
pass ARI config path as env var (#228)
Browse files Browse the repository at this point in the history
Signed-off-by: Sumit Jaiswal <[email protected]>
  • Loading branch information
justjais authored Apr 29, 2024
1 parent a3b7ebc commit 9c9ea1c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ansible_risk_insight/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@
equal,
)


default_config_path = os.path.expanduser("~/.ari/config")
ARI_CONFIG_PATH = os.getenv("ARI_CONFIG_PATH")
if ARI_CONFIG_PATH:
default_config_path = ARI_CONFIG_PATH
else:
default_config_path = os.path.expanduser("~/.ari/config")
default_data_dir = os.path.join("/tmp", "ari-data")
default_rules_dir = os.path.join(os.path.dirname(__file__), "rules")
default_log_level = "info"
Expand Down

0 comments on commit 9c9ea1c

Please sign in to comment.