Skip to content

Commit

Permalink
Update src/providers/vmware/amd64.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Lebon <[email protected]>
  • Loading branch information
pothos and jlebon authored Nov 15, 2023
1 parent d511601 commit 3b9c101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/vmware/amd64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl VmwareProvider {
// Only the "network" key is allowed to be present.
// We use the json! macro but this is only about creating a serde value::Value,
// even though its name sounds like it would create JSON.
let netplan_config_filtered = json!({ "network": netplan_config_unfiltered.get("network").ok_or(anyhow!("no 'network' key found"))?});
let netplan_config_filtered = json!({ "network": netplan_config_unfiltered.get("network").context("no 'network' key found")?});
let netplan_config = serde_yaml::to_string(&netplan_config_filtered)?;
Ok(Some(netplan_config))
} else {
Expand Down

0 comments on commit 3b9c101

Please sign in to comment.