From e3adc46e306e1836dfe0e6ad259d06737f829923 Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Mon, 1 May 2017 11:24:54 -0400 Subject: [PATCH] Fixed bug adding a normal inventory --- .../src/inventories/add/inventory-add.controller.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/awx/ui/client/src/inventories/add/inventory-add.controller.js b/awx/ui/client/src/inventories/add/inventory-add.controller.js index dd965bd362..fce7e26dc1 100644 --- a/awx/ui/client/src/inventories/add/inventory-add.controller.js +++ b/awx/ui/client/src/inventories/add/inventory-add.controller.js @@ -49,9 +49,9 @@ function InventoriesAdd($scope, $location, $scope.parseType = 'yaml'; ParseTypeChange({ scope: $scope, - variable: 'variables', + variable: 'inventory_variables', parse_variable: 'parseType', - field_id: 'inventory_variables' + field_id: 'inventory_inventory_variables' }); } @@ -59,9 +59,7 @@ function InventoriesAdd($scope, $location, $scope.formSave = function() { Wait('start'); try { - var fld, json_data, data; - - json_data = ToJSON($scope.parseType, $scope.variables, true); + var fld, data; data = {}; for (fld in form.fields) {