From f82bd6ae4b3a19e29942ea6746d293c3b450f1fc Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Wed, 11 Jul 2018 16:18:52 -0700 Subject: [PATCH] Fix line numbers in job repr The ZuulMark line numbers are base 0; add 1 when we report job locations. Change-Id: I6f3d5b73f2f898f657922d84f1a50bf63afa5def --- zuul/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zuul/model.py b/zuul/model.py index 4e41dd2907..1e08f465be 100644 --- a/zuul/model.py +++ b/zuul/model.py @@ -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 '' % ( self.name, self.branch_matcher,