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:
parent
3b515db38a
commit
5b738c3637
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue