disable a destroyed agent's identity entity and delete its login role
This commit is contained in:
parent
db924d9e77
commit
299b922039
1 changed files with 528 additions and 9 deletions
|
|
@ -348,6 +348,11 @@ async fn observe_all(
|
|||
None
|
||||
}
|
||||
};
|
||||
// Destroyed agents that still have a role are cut off here, each pass until
|
||||
// it succeeds.
|
||||
if let Some(with_role) = &roles {
|
||||
crate::agent_cutoff::cut_off_destroyed(&store, with_role, &declarations).await;
|
||||
}
|
||||
let mut observed = Vec::new();
|
||||
for agent in live_agents(&declarations) {
|
||||
let o = AgentObserved {
|
||||
|
|
|
|||
Loading…
Reference in a new issue