Fixed PyScripts.start_script method to return the updated data object

Bug report: https://storyboard.openstack.org/#!/story/2008404

Change-Id: I00c985f0a20f3d38a40155a38ae832f38abf70aa
This commit is contained in:
Lars Wiegman 2020-12-10 11:44:32 +01:00 committed by Pierre Riteau
parent 3b515db38a
commit 5b738c3637
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():