Skip to content

Commit

Permalink
Fixes #24675: When sending inventory with no software update anymore,…
Browse files Browse the repository at this point in the history
… inventory stored is not updated and keeps previous updates
  • Loading branch information
VinceMacBuche committed Apr 4, 2024
1 parent f19828f commit d630ef1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ class FullInventoryRepositoryImpl(
_ <- NodeIdRegex.checkNodeId(inventory.node.main.id.value).toIO
_ <- HostnameRegex.checkHostname(inventory.node.main.hostname).toIO
con <- ldap
resServer <- con.saveTree(mapper.treeFromNode(inventory.node))
resServer <- con.saveTree(mapper.treeFromNode(inventory.node), deleteRemoved = true)
resMachine <- inventory.machine match {
case None => Seq().succeed
case Some(m) => this.save(m)
Expand Down

0 comments on commit d630ef1

Please sign in to comment.