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:
James E. Blair 2018-07-11 16:18:52 -07:00
parent 19afda37a3
commit f82bd6ae4b
1 changed files with 1 additions and 1 deletions

View File

@ -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,