|
@@ -37,13 +37,14 @@ pub(crate) async fn build_composed_dir_on_node(
|
|
|
|
|
|
|
|
if dry_run {
|
|
if dry_run {
|
|
|
println!(
|
|
println!(
|
|
|
- "[dry-run] would build composed model dir '{}' on '{}' \
|
|
|
|
|
- (mount: {}, {} sources, {} files)",
|
|
|
|
|
- host_path,
|
|
|
|
|
- node.name,
|
|
|
|
|
- container_path,
|
|
|
|
|
- composed.sources.len(),
|
|
|
|
|
- composed.files.len()
|
|
|
|
|
|
|
+ "{}",
|
|
|
|
|
+ fluent_i18n::t!("composed-dir-dry-run", {
|
|
|
|
|
+ "host" => host_path,
|
|
|
|
|
+ "node" => node.name.clone(),
|
|
|
|
|
+ "mount" => container_path,
|
|
|
|
|
+ "sources" => composed.sources.len() as u32,
|
|
|
|
|
+ "files" => composed.files.len() as u32,
|
|
|
|
|
+ })
|
|
|
);
|
|
);
|
|
|
return Ok((host_path, container_path));
|
|
return Ok((host_path, container_path));
|
|
|
}
|
|
}
|
|
@@ -76,11 +77,13 @@ pub(crate) async fn build_composed_dir_on_node(
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
info!(
|
|
info!(
|
|
|
- "Built composed model dir '{}' on '{}' ({} sources, {} files)",
|
|
|
|
|
- host_path,
|
|
|
|
|
- node.name,
|
|
|
|
|
- composed.sources.len(),
|
|
|
|
|
- composed.files.len()
|
|
|
|
|
|
|
+ "{}",
|
|
|
|
|
+ fluent_i18n::t!("composed-dir-built", {
|
|
|
|
|
+ "host" => host_path,
|
|
|
|
|
+ "node" => node.name.clone(),
|
|
|
|
|
+ "sources" => composed.sources.len() as u32,
|
|
|
|
|
+ "files" => composed.files.len() as u32,
|
|
|
|
|
+ })
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
Ok((host_path, container_path))
|
|
Ok((host_path, container_path))
|