Skip to content

Commit

Permalink
Add command to get osd metadata specified by osd id
Browse files Browse the repository at this point in the history
  • Loading branch information
mzhong1 committed Nov 9, 2020
1 parent d67038d commit e988d91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,11 @@ pub fn osd_metadata_by_id(cluster_handle: &Rados, osd_id: u64) -> RadosResult<Os

let result = cluster_handle.ceph_mon_command_without_data(&cmd)?;
let return_data = String::from_utf8(result.0)?;
<<<<<<< HEAD
trace!("{:?}", return_data);
=======
println!("{:?}", return_data);
>>>>>>> 3081cc1... Add command to get osd metadata specified by osd id
Ok(serde_json::from_str(&return_data)?)
}

Expand Down

0 comments on commit e988d91

Please sign in to comment.