("other", false) => get_system_information().await.into(),
("power", true) => set_node_power(bmc, query).await,
("power", false) => get_node_power(bmc).await.into(),
- ("reboot", true) => reboot(query).await.into(),
+ ("reboot", true) => reboot(bmc, query).await.into(),
("reload", true) => reload_self().into(),
("reset", true) => reset_node(bmc, query).await.into(),
("sdcard", true) => format_sdcard().into(),
)
}
-async fn reboot(query: Query) -> LegacyResult<()> {
- BmcApplication::reboot(query.contains_key("fel"))
+async fn reboot(bmc: &BmcApplication, query: Query) -> LegacyResult<()> {
+ bmc.reboot(query.contains_key("fel"))
.await
.map_err(Into::into)
}