Use quick-xml to serialize domains definitions

This commit is contained in:
2024-01-02 14:40:16 +01:00
parent 9256b76495
commit d741e12653
2 changed files with 39 additions and 72 deletions

View File

@ -128,7 +128,7 @@ impl Handler<DefineDomainReq> for LibVirtActor {
type Result = anyhow::Result<XMLUuid>;
fn handle(&mut self, mut msg: DefineDomainReq, _ctx: &mut Self::Context) -> Self::Result {
let xml = msg.1.into_xml()?;
let xml = msg.1.as_xml()?;
log::debug!("Define domain:\n{}", xml);
let domain = Domain::define_xml(&self.m, &xml)?;