src/api2/node/disks.rs: correctly use disk_by_name insteadf of disk_by_node

This commit is contained in:
Dietmar Maurer 2020-06-08 07:20:59 +02:00
parent 707974fdb3
commit 2b388026f8
1 changed files with 1 additions and 1 deletions

View File

@ -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())?;