mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 06:52:13 +00:00
agent: use method params instead of const params in functions
Fixes: #8325 Signed-off-by: soup <lqh348659137@outlook.com>
This commit is contained in:
parent
0f532175fe
commit
7c176a62fe
@ -56,7 +56,7 @@ fn do_setup_guest_dns(logger: Logger, dns_list: &[String], src: &str, dst: &str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if attr.unwrap().is_dir() {
|
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
|
// write DNS to file
|
||||||
|
Loading…
Reference in New Issue
Block a user