forked from DGNum/colmena
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 =
|
let username =
|
||||||
match &self.target_user {
|
match &self.target_user {
|
||||||
Some(uname) => uname.clone(),
|
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());
|
let mut host = Ssh::new(username.clone(), target_host.clone());
|
||||||
host.set_privilege_escalation_command(self.privilege_escalation_command.clone());
|
host.set_privilege_escalation_command(self.privilege_escalation_command.clone());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue