fix survey vars bug and inventory defaults display

This commit is contained in:
AlanCoding
2018-11-12 11:00:21 -05:00
committed by Jake McDermott
parent 75566bad39
commit c1d85f568c
3 changed files with 12 additions and 8 deletions

View File

@@ -3108,6 +3108,8 @@ class WorkflowJobTemplateLaunch(WorkflowsEnforcementMixin, RetrieveAPIView):
data['extra_vars'] = extra_vars
if obj.ask_inventory_on_launch:
data['inventory'] = obj.inventory_id
else:
data.pop('inventory', None)
return data
def post(self, request, *args, **kwargs):