This commit is contained in:
parent
b352a7bc43
commit
9c1dca651b
1 changed files with 3 additions and 1 deletions
|
@ -137,7 +137,9 @@ pub fn has_filesystem(dev: &str) -> Option<String> {
|
||||||
|
|
||||||
if let Some(dev_entry) = dev_entry {
|
if let Some(dev_entry) = dev_entry {
|
||||||
if let Some(fs) = dev_entry.as_object().unwrap().get("fstype") {
|
if let Some(fs) = dev_entry.as_object().unwrap().get("fstype") {
|
||||||
return Some(fs.to_string());
|
if matches!(fs, serde_json::Value::String(_)) {
|
||||||
|
return Some(fs.to_string());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue