Skip to content

Commit

Permalink
Only delete op intents that we manage
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminPelletier committed Nov 7, 2023
1 parent 16fe65f commit b82e6e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions monitoring/mock_uss/scd_injection/routes_injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,12 @@ def make_result(error: Optional[dict] = None) -> ClearAreaResponse:
notes += ": " + del_resp.notes
flight_deletion_errors[flight_id] = {"notes": notes}

# Try to delete every remaining operational intent
# Try to delete every remaining operational intent that we manage
self_sub = utm_client.auth_adapter.get_sub()
op_intent_refs = [
oi for oi in op_intent_refs if oi.id not in op_intents_removed
oi
for oi in op_intent_refs
if oi.id not in op_intents_removed and oi.manager == self_sub
]
op_intent_ids_str = ", ".join(
op_intent_ref.id for op_intent_ref in op_intent_refs
Expand Down

0 comments on commit b82e6e2

Please sign in to comment.