From 3dfcd4cc85be49ef92f71d0766d2fbf8ec3000c8 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Jun 19 2019 16:43:31 +0000 Subject: Actually fix the status/cid check Turns out it was wrong all this time... Signed-off-by: Adam Williamson --- diff --git a/relvalconsumer.py b/relvalconsumer.py index 73b9de3..dd9c9b7 100644 --- a/relvalconsumer.py +++ b/relvalconsumer.py @@ -51,7 +51,7 @@ class RelvalConsumer(object): # only run on completed composes status = message.body.get('status', '') cid = message.body.get('compose_id') - if not 'FINISHED' in status and cid: + if 'FINISHED' not in status or not cid: return # some compose info we'll use