diff --git a/awx/ui/client/src/inventories/related-hosts/list/host-list.controller.js b/awx/ui/client/src/inventories/related-hosts/list/host-list.controller.js index f169faa6a8..83694dfee3 100644 --- a/awx/ui/client/src/inventories/related-hosts/list/host-list.controller.js +++ b/awx/ui/client/src/inventories/related-hosts/list/host-list.controller.js @@ -86,8 +86,8 @@ export default ['$scope', 'ListDefinition', '$rootScope', 'GetBasePath', $scope.editHost = function(host){ $state.go('inventories.edit.hosts.edit', {inventory_id: host.inventory_id, host_id: host.id}); }; - $scope.goToInsights = function(id){ - $state.go('inventories.edit.hosts.edit.insights', {host_id:id}); + $scope.goToInsights = function(host){ + $state.go('inventories.edit.hosts.edit.insights', {inventory_id: host.inventory_id, host_id:host.id}); }; $scope.deleteHost = function(id, name){ var body = '
Are you sure you want to permanently delete the host below from the inventory?
' + $filter('sanitize')(name) + '
'; diff --git a/awx/ui/client/src/inventories/related-hosts/related-host.list.js b/awx/ui/client/src/inventories/related-hosts/related-host.list.js index 57aea9577b..698d1cd853 100644 --- a/awx/ui/client/src/inventories/related-hosts/related-host.list.js +++ b/awx/ui/client/src/inventories/related-hosts/related-host.list.js @@ -51,7 +51,7 @@ export default { columnClass: 'col-lg-6 col-md-4 col-sm-4 col-xs-5 text-right', insights: { - ngClick: "goToInsights(host.id)", + ngClick: "goToInsights(host)", icon: 'fa-info', awToolTip: 'View Insights Data', dataPlacement: 'top',