Skip to content

Commit

Permalink
fix cmd override for interactive_sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
n-hass committed Feb 16, 2024
1 parent a395fce commit da2da6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ async fn run_deploy(

let mut deploy_defs = deploy_data.defs()?;

if node.generic_settings.interactive_sudo.unwrap_or(false) {
if deploy_data.merged_settings.interactive_sudo.unwrap_or(false) {
warn!("Interactive sudo is enabled! Using a sudo password is less secure than correctly configured SSH keys.\nPlease use keys in production environments.");
info!("You will now be prompted for the sudo password for {}.", node.node_settings.hostname);
let sudo_password = rpassword::prompt_password(format!("(sudo for {}) Password: ", node.node_settings.hostname)).unwrap_or("".to_string());
Expand Down

0 comments on commit da2da6a

Please sign in to comment.