]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
script/redmine-upkeep: correct filter out of upkeep-failed
authorPatrick Donnelly <pdonnell@ibm.com>
Mon, 4 Aug 2025 14:48:00 +0000 (10:48 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Tue, 12 Aug 2025 16:01:24 +0000 (12:01 -0400)
"!~" is the proper filter for "does not contain".

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/script/redmine-upkeep.py

index 71a64d481d5ff4f670cef7492a8fd26fcba2dbeb..c760cad68e8b5657f4244483ee28b043387e5c43 100755 (executable)
@@ -963,7 +963,7 @@ h2. Update Payload
             "project_id": self.project_id,
             "sort": f'cf_{REDMINE_CUSTOM_FIELD_ID_UPKEEP_TIMESTAMP}',
             "status_id": "*",
-            f"cf_{REDMINE_CUSTOM_FIELD_ID_TAGS}": "!upkeep-failed",
+            f"cf_{REDMINE_CUSTOM_FIELD_ID_TAGS}": "!~upkeep-failed",
         }
         #f"cf_{REDMINE_CUSTOM_FIELD_ID_UPKEEP_TIMESTAMP}": f"<={cutoff_date}", # Not updated recently