Skip to content

Commit f7c4bd1

Browse files
authored
Merge pull request #1530 from Johan-Liebert1/rhsm-fix
rhsm: Update function call to match new Storage API
2 parents 147f16c + f5d2621 commit f7c4bd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/lib/src/rhsm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ 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 (_, _, host) = crate::status::get_status_require_booted(ostree)?;
9797

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

0 commit comments

Comments
 (0)