We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ce82d2 commit a8a7156Copy full SHA for a8a7156
kernelci/runtime/lava.py
@@ -86,7 +86,6 @@ class Callback:
86
def __init__(self, data):
87
"""This class can be used to parse LAVA callback data"""
88
self._data = data
89
- self._meta = None
90
91
def get_data(self):
92
"""Get the raw callback data"""
@@ -102,9 +101,7 @@ def get_job_definition(self, key):
102
101
103
def get_meta(self, key):
104
"""Get a metadata value from the job definition"""
105
- if self._meta is None:
106
- self._meta = yaml.safe_load(self._data['definition'])['metadata']
107
- return self._meta.get(key)
+ return self.get_job_definition('metadata').get(key)
108
109
def get_job_status(self):
110
"""Get the job status"""
0 commit comments