add back in support of towervars lost in merge

This commit is contained in:
AlanCoding
2017-12-13 14:28:04 -05:00
parent bd91e8eb54
commit 1b0bca8229
3 changed files with 29 additions and 2 deletions

View File

@@ -2443,7 +2443,8 @@ class InventoryScriptView(RetrieveAPIView):
host = get_object_or_404(obj.hosts, **hosts_q)
return Response(host.variables_dict)
return Response(obj.get_script_data(
hostvars=bool(request.query_params.get('hostvars', '')),
hostvars=hostvars,
towervars=towervars,
show_all=show_all
))