From 85ed1ce0be56a0e50c82c4bbf95324e86efc5d41 Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Tue, 16 May 2017 16:30:20 -0400 Subject: [PATCH] Fixed host add form --- .../inventories/related-hosts/add/host-add.controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/ui/client/src/inventories/related-hosts/add/host-add.controller.js b/awx/ui/client/src/inventories/related-hosts/add/host-add.controller.js index 15bb942f5f..966d3c351b 100644 --- a/awx/ui/client/src/inventories/related-hosts/add/host-add.controller.js +++ b/awx/ui/client/src/inventories/related-hosts/add/host-add.controller.js @@ -25,8 +25,8 @@ export default ['$state', '$stateParams', '$scope', 'RelatedHostsFormDefinition' ParseTypeChange({ scope: $scope, - field_id: 'host_variables', - variable: 'variables', + field_id: 'host_host_variables', + variable: 'host_variables', parse_variable: 'parseType' }); } @@ -40,7 +40,7 @@ export default ['$state', '$stateParams', '$scope', 'RelatedHostsFormDefinition' $scope.host.enabled = !$scope.host.enabled; }; $scope.formSave = function(){ - var json_data = ToJSON($scope.parseType, $scope.variables, true), + var json_data = ToJSON($scope.parseType, $scope.host_variables, true), params = { variables: json_data,// $scope.variables === '---' || $scope.variables === '{}' ? null : $scope.variables, name: $scope.name,