mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
fixed the initial post to the api for inv vars
This commit is contained in:
@@ -438,8 +438,9 @@ export function InventoriesAdd($scope, $rootScope, $compile, $location, $log, $r
|
|||||||
}
|
}
|
||||||
$scope.removeUpdateInventoryVariables = $scope.$on('UpdateInventoryVariables', function(e, data) {
|
$scope.removeUpdateInventoryVariables = $scope.$on('UpdateInventoryVariables', function(e, data) {
|
||||||
var inventory_id = data.id;
|
var inventory_id = data.id;
|
||||||
|
var vars_to_send = {"variables": json_data};
|
||||||
Rest.setUrl(data.related.variable_data);
|
Rest.setUrl(data.related.variable_data);
|
||||||
Rest.put(json_data)
|
Rest.put(vars_to_send)
|
||||||
.success(function () {
|
.success(function () {
|
||||||
Wait('stop');
|
Wait('stop');
|
||||||
$location.path('/inventories/' + inventory_id + '/manage');
|
$location.path('/inventories/' + inventory_id + '/manage');
|
||||||
|
|||||||
Reference in New Issue
Block a user