diff --git a/monitoring/monitorlib/clients/flight_planning/client_v1.py b/monitoring/monitorlib/clients/flight_planning/client_v1.py index bc9cb8d6c8..c64eb5039f 100644 --- a/monitoring/monitorlib/clients/flight_planning/client_v1.py +++ b/monitoring/monitorlib/clients/flight_planning/client_v1.py @@ -87,6 +87,10 @@ def try_update_flight( def try_end_flight( self, flight_id: FlightID, execution_style: ExecutionStyle ) -> PlanningActivityResponse: + if execution_style != ExecutionStyle.IfAllowed: + raise NotImplementedError( + "Only IfAllowed execution style is currently allowed" + ) op = api.OPERATIONS[api.OperationID.DeleteFlightPlan] url = op.path.format(flight_plan_id=flight_id) query = query_and_describe(self._session, op.verb, url, scope=Scope.Plan)