Skip to content

Commit

Permalink
Merge pull request #8326 from cheriL/8325/fix_method_param
Browse files Browse the repository at this point in the history
agent: use method params instead of const params in functions
  • Loading branch information
gkurz committed Jan 9, 2024
2 parents 192c6ee + 7c176a6 commit e3611cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agent/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn do_setup_guest_dns(logger: Logger, dns_list: &[String], src: &str, dst: &str)
}

if attr.unwrap().is_dir() {
return Err(anyhow!("{} is a directory", GUEST_DNS_FILE));
return Err(anyhow!("{} is a directory", dst));
}

// write DNS to file
Expand Down

0 comments on commit e3611cf

Please sign in to comment.