We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 147f16c commit 2b3cd3cCopy full SHA for 2b3cd3c
crates/lib/src/rhsm.rs
@@ -92,8 +92,9 @@ impl From<crate::spec::HostStatus> for RhsmFacts {
92
#[context("Publishing facts")]
93
pub(crate) async fn publish_facts(root: &Dir) -> Result<()> {
94
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())?;
+ let ostree = sysroot.get_ostree()?;
+ let (booted_deployment, ..) = crate::status::get_status_require_booted(ostree)?;
97
+ let (_deployments, host) = crate::status::get_status(ostree, Some(&booted_deployment))?;
98
99
let facts = RhsmFacts::from(host.status);
100
root.atomic_replace_with(FACTS_PATH, |w| {
0 commit comments