diff --git a/awx/ui/client/src/dashboard/hosts/dashboard-hosts-list.controller.js b/awx/ui/client/src/dashboard/hosts/dashboard-hosts-list.controller.js index 03398be7e9..066ab5f9aa 100644 --- a/awx/ui/client/src/dashboard/hosts/dashboard-hosts-list.controller.js +++ b/awx/ui/client/src/dashboard/hosts/dashboard-hosts-list.controller.js @@ -16,7 +16,7 @@ export default $state.go('dashboardHosts.edit', {id: id}); }; $scope.toggleHostEnabled = function(host){ - DashboardHostsService.setHostStatus(host, !host.enabled) + DashboardHostService.setHostStatus(host, !host.enabled) .then(function(res){ var index = _.findIndex($scope.hosts, function(o) {return o.id === res.data.id;}); $scope.hosts[index].enabled = res.data.enabled;