commit | c846ca44d089345fa0c3ca8af2e4b728c03fce15 | [log] [tgz] |
---|---|---|
author | Jenkins <jenkins@review.openstack.org> | Thu Feb 16 00:15:28 2017 +0000 |
committer | Gerrit Code Review <review@openstack.org> | Thu Feb 16 00:15:28 2017 +0000 |
tree | 7dc9bacd31f1057624f889d2dc297f66848fcc0e | |
parent | 5f0f5142151a1b9cce310698260af7e86fd04b30 [diff] | |
parent | 12748b5e5635cf114e4e9316ef5c962393e4cffe [diff] |
Merge "Add __repr__ to jobtree" into feature/zuulv3
diff --git a/zuul/model.py b/zuul/model.py index 7bcc8f6..5a9e367 100644 --- a/zuul/model.py +++ b/zuul/model.py
@@ -787,6 +787,9 @@ self.job = job self.job_trees = [] + def __repr__(self): + return '<JobTree %s %s>' % (self.job, self.job_trees) + def addJob(self, job): if job not in [x.job for x in self.job_trees]: t = JobTree(job)