variable.set now returns output in the form name:value so the newly set variable is already available in the context of the task

This commit is contained in:
Fabio Manganiello 2018-06-13 22:19:17 +02:00
parent 7fd375da66
commit 9113ac0530
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class VariablePlugin(Plugin):
def set(self, name, value):
self._variables[name] = value
return Response(output={'status':'ok'})
return Response(output={name: value})
def unset(self, name):
if name in self._variables: