Skip to content

Commit 8484342

Browse files
authored
fix: OSPC-1880: Only process target events ('start_lease')
2 parents bc29ad3 + ae89f74 commit 8484342

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

scripts/blazar-reservation-splitter-app/blazar-reservation-splitter.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,12 @@ def process_message(self, ch, method, properties, body):
254254
event_type = oslo_message.get('event_type')
255255
payload = oslo_message.get('payload', {})
256256

257+
# Only process target events ('start_lease')
258+
if event_type not in CONF.target_events:
259+
logger.debug(f"Skipping event: {event_type} (not in target events: {CONF.target_events})")
260+
ch.basic_ack(delivery_tag=method.delivery_tag)
261+
return
262+
257263
logger.info(f"Processing event: {event_type} for lease {payload.get('lease_id')}")
258264

259265
# Split reservations

0 commit comments

Comments
 (0)