We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9f4137 commit 61fd8efCopy full SHA for 61fd8ef
src/read/get_partition/mod.rs
@@ -62,7 +62,16 @@ fn parted_get_list_json_general() -> Vec<Disk>
62
let model = is_available_string(parted["model"].to_string());
63
let transport = is_available_string(parted["transport"].to_string());
64
let label = is_available_string(parted["label"].to_string());
65
- let uuid = is_available_string(parted["uuid"].to_string());
+ let uuid = is_available_string(
66
+ if parted.contains_key("uuid")
67
+ {
68
+ parted["uuid"].to_string()
69
+ }
70
+ else
71
72
+ String::from("")
73
74
+ );
75
let max_partition = parted["max-partitions"].to_string().trim().parse().unwrap();
76
77
let struct_disk = Disk::new(
0 commit comments