src/api2/node/disks.rs: correctly use disk_by_name insteadf of disk_by_node
This commit is contained in:
parent
707974fdb3
commit
2b388026f8
@ -151,7 +151,7 @@ pub fn initialize_disk(
|
||||
worker.log(format!("initialize disk {}", disk));
|
||||
|
||||
let disk_manager = DiskManage::new();
|
||||
let disk_info = disk_manager.disk_by_node(&disk)?;
|
||||
let disk_info = disk_manager.disk_by_name(&disk)?;
|
||||
|
||||
inititialize_gpt_disk(&disk_info, uuid.as_deref())?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user