]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
script/redmine-upkeep: break out of filters on limit threshold
authorPatrick Donnelly <pdonnell@ibm.com>
Wed, 13 Aug 2025 17:14:02 +0000 (13:14 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Wed, 27 Aug 2025 15:48:26 +0000 (11:48 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/script/redmine-upkeep.py

index 72924f5ab5e09b7570e8a13ef545a71768b3dace..ff9d3fc696a7af106291127bdc598289613138d5 100755 (executable)
@@ -1347,6 +1347,8 @@ h2. Update Payload
                                 break
                     except redminelib.exceptions.ResourceAttrError as e:
                         log.warning(f"Redmine API error with filter {issue_filter}: {e}")
+                    if limit <= 0:
+                        break
 
 def main():
     parser = argparse.ArgumentParser(description="Ceph redmine upkeep tool")