Merge "Fixed PyScripts.start_script method to return the updated data object"

This commit is contained in:
Zuul 2021-11-29 14:57:49 +00:00 committed by Gerrit Code Review
commit 0ca167cd02
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class PyScripts(rating.RatingProcessorBase):
def start_script(self, code, data):
context = {'data': data}
exec(code, context) # nosec
return data
return context['data']
def process(self, data):
for script in self._scripts.values():