Fix line numbers in job repr
The ZuulMark line numbers are base 0; add 1 when we report job locations. Change-Id: I6f3d5b73f2f898f657922d84f1a50bf63afa5def
This commit is contained in:
parent
19afda37a3
commit
f82bd6ae4b
@ -1073,7 +1073,7 @@ class Job(ConfigObject):
|
||||
def __repr__(self):
|
||||
ln = 0
|
||||
if self.start_mark:
|
||||
ln = self.start_mark.line
|
||||
ln = self.start_mark.line + 1
|
||||
return '<Job %s branches: %s source: %s#%s>' % (
|
||||
self.name,
|
||||
self.branch_matcher,
|
||||
|
Loading…
Reference in New Issue
Block a user