nix: Remove unneeded ok()
This commit is contained in:
parent
d5f5ed6abb
commit
6d6e33fcd4
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ impl NodeConfig {
|
|||
let username =
|
||||
match &self.target_user {
|
||||
Some(uname) => uname.clone(),
|
||||
None => get_current_username().unwrap().into_string().ok().unwrap(),
|
||||
None => get_current_username().unwrap().into_string().unwrap(),
|
||||
};
|
||||
let mut host = Ssh::new(username.clone(), target_host.clone());
|
||||
host.set_privilege_escalation_command(self.privilege_escalation_command.clone());
|
||||
|
|
Loading…
Reference in a new issue