Skip to content

Commit d28f6d1

Browse files
authored
Force update lenovo firmware (#86)
In cases when lenovo machines have a higher version of a firmware component compared to what is in the desired_firmware table, the upgrade silently succeeds as a noop. But since the versions didn't change the machine gets stuck in a loop. This change will force the update even if the current version is higher.
1 parent a1b9832 commit d28f6d1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/lenovo.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2004,13 +2004,15 @@ struct UpdateParameters {
20042004
targets: Vec<String>,
20052005
#[serde(rename = "@Redfish.OperationApplyTime")]
20062006
operation_apply_time: String,
2007+
force_update: bool,
20072008
}
20082009

20092010
impl UpdateParameters {
20102011
fn new() -> Self {
20112012
Self {
20122013
targets: vec![],
20132014
operation_apply_time: "Immediate".to_string(),
2015+
force_update: true,
20142016
}
20152017
}
20162018
}

0 commit comments

Comments
 (0)