pipeline: remove metadata from BuildResult
The metadata field became unused with the previous commit, which uses `Object.meta` to read the metadata.
This commit is contained in:
parent
4b94769f6b
commit
8b638562d1
1 changed files with 2 additions and 3 deletions
|
|
@ -43,12 +43,11 @@ def cleanup(*objs):
|
|||
|
||||
|
||||
class BuildResult:
|
||||
def __init__(self, origin, returncode, output, metadata, error):
|
||||
def __init__(self, origin, returncode, output, error):
|
||||
self.name = origin.name
|
||||
self.id = origin.id
|
||||
self.success = returncode == 0
|
||||
self.output = output
|
||||
self.metadata = metadata
|
||||
self.error = error
|
||||
|
||||
def as_dict(self):
|
||||
|
|
@ -239,7 +238,7 @@ class Stage:
|
|||
if r.returncode == 0:
|
||||
tree.meta.set(self.id, api.metadata)
|
||||
|
||||
return BuildResult(self, r.returncode, r.output, api.metadata, api.error)
|
||||
return BuildResult(self, r.returncode, r.output, api.error)
|
||||
|
||||
|
||||
class Runner:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue