Skip to content

Commit 2b3cd3c

Browse files
rhsm: Update function call to match new Storage API
Update according to API changes introduced in bootc-dev#1525 Signed-off-by: Johan-Liebert1 <[email protected]>
1 parent 147f16c commit 2b3cd3c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/lib/src/rhsm.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ impl From<crate::spec::HostStatus> for RhsmFacts {
9292
#[context("Publishing facts")]
9393
pub(crate) async fn publish_facts(root: &Dir) -> Result<()> {
9494
let sysroot = super::cli::get_storage().await?;
95-
let booted_deployment = sysroot.booted_deployment();
96-
let (_deployments, host) = crate::status::get_status(&sysroot, booted_deployment.as_ref())?;
95+
let ostree = sysroot.get_ostree()?;
96+
let (booted_deployment, ..) = crate::status::get_status_require_booted(ostree)?;
97+
let (_deployments, host) = crate::status::get_status(ostree, Some(&booted_deployment))?;
9798

9899
let facts = RhsmFacts::from(host.status);
99100
root.atomic_replace_with(FACTS_PATH, |w| {

0 commit comments

Comments
 (0)