mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 13:41:28 -03:30
Fixed bug adding a normal inventory
This commit is contained in:
parent
fcc70f69fa
commit
e3adc46e30
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user