Skip to content

Commit

Permalink
Use a constant for the default TA config file.
Browse files Browse the repository at this point in the history
  • Loading branch information
partim committed Jul 30, 2024
1 parent f1fbb44 commit 1a6d6f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli/ta/options/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use std::{error, fmt, fs, io};
use std::str::FromStr;
use std::sync::Arc;
use rpki::uri;
use crate::constants;
use crate::cli::options::args::JsonFile;
use crate::cli::report::{Report, ReportFormat};
use crate::cli::ta::signer::{
Expand All @@ -24,7 +25,7 @@ pub struct Command {
#[arg(
long, short,
value_name = "path",
default_value = "/etc/krillta.conf"
default_value = constants::KRILL_DEFAULT_TA_CONFIG_FILE,
)]
config: ConfigFile,

Expand Down
1 change: 1 addition & 0 deletions src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub const KRILL_CLIENT_APP: &str = "Krill Client";
pub const KRILL_TA_CLIENT_APP: &str = "Krill Trust Anchor Client";

pub const KRILL_DEFAULT_CONFIG_FILE: &str = "/etc/krill.conf";
pub const KRILL_DEFAULT_TA_CONFIG_FILE: &str = "/etc/krillta.conf";

const KRILL_ENV_TEST: &str = "KRILL_TEST";
const KRILL_ENV_TEST_ANN: &str = "KRILL_TEST_ANN";
Expand Down

0 comments on commit 1a6d6f0

Please sign in to comment.