mirror of
https://github.com/containers/bootc.git
synced 2026-02-05 15:45:53 +01:00
Merge pull request #1530 from Johan-Liebert1/rhsm-fix
rhsm: Update function call to match new Storage API
This commit is contained in:
@@ -92,8 +92,8 @@ impl From<crate::spec::HostStatus> for RhsmFacts {
|
||||
#[context("Publishing facts")]
|
||||
pub(crate) async fn publish_facts(root: &Dir) -> Result<()> {
|
||||
let sysroot = super::cli::get_storage().await?;
|
||||
let booted_deployment = sysroot.booted_deployment();
|
||||
let (_deployments, host) = crate::status::get_status(&sysroot, booted_deployment.as_ref())?;
|
||||
let ostree = sysroot.get_ostree()?;
|
||||
let (_, _, host) = crate::status::get_status_require_booted(ostree)?;
|
||||
|
||||
let facts = RhsmFacts::from(host.status);
|
||||
root.atomic_replace_with(FACTS_PATH, |w| {
|
||||
|
||||
Reference in New Issue
Block a user