Commit fa0192b2 authored by Hrvoje Ribicic's avatar Hrvoje Ribicic

Make gnt-debug locks display fake job locks properly

When a job is dependent on other jobs, a fake lock is created whose
pending entry contains a list of job ids waiting on the job. gnt-debug
locks did not expect the job ids to be ints, crashing when encountering
them. This patch fixes the situation by forcing a string cast.
Signed-off-by: default avatarHrvoje Ribicic <riba@google.com>
Reviewed-by: default avatarJose A. Lopes <jabolopes@google.com>
parent 0fe20731
......@@ -595,7 +595,7 @@ def ListLocks(opts, args): # pylint: disable=W0613
"""Format pending acquires.
"""
return utils.CommaJoin("%s:%s" % (mode, ",".join(threads))
return utils.CommaJoin("%s:%s" % (mode, ",".join(map(str, threads)))
for mode, threads in value)
# Format raw values
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment