]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
script/ptl-tool: fix typo 66953/head
authorPatrick Donnelly <pdonnell@ibm.com>
Wed, 14 Jan 2026 16:08:04 +0000 (11:08 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Fri, 16 Jan 2026 18:35:17 +0000 (13:35 -0500)
    Traceback (most recent call last):
      File "/home/batrick/scm/ceph/src/script/ptl-tool.py", line 657, in <module>
      File "/home/batrick/scm/ceph/src/script/ptl-tool.py", line 654, in main
      File "/home/batrick/scm/ceph/src/script/ptl-tool.py", line 464, in build_branch
    UnboundLocalError: cannot access local variable 'trailer_commit' where it is not associated with a value

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

index 368af25c2bbf7f43982d1a28f5c6262719e7e3aa..2565c3aedbb23aaeb543f3cdc454552c52734812 100755 (executable)
@@ -448,7 +448,7 @@ def build_branch(args):
 
     """
     message = textwrap.dedent(message)
-    trailer_commmit = False
+    trailer_commit = False
     if args.build_job:
         message += f"CEPH-BUILD-JOB: {args.build_job}\n"
         trailer_commit = True