From 6dae4a1d6d96c677cfde7c52a9c4002cd3c8e1d5 Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Mon, 15 Apr 2019 15:35:39 -0400 Subject: [PATCH] Add the host in as a parameter to the _get_insights call --- awx/api/views/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/api/views/__init__.py b/awx/api/views/__init__.py index ec49cfdb8c..b3e89fe921 100644 --- a/awx/api/views/__init__.py +++ b/awx/api/views/__init__.py @@ -1711,7 +1711,7 @@ class HostInsights(GenericAPIView): return remediations - def _get_insights(self, session, headers): + def _get_insights(self, host, session, headers): platform_info = self._get_platform_info(host, session, headers) platform_id = platform_info['id'] reports = self._get_reports(platform_id, session, headers) @@ -1744,7 +1744,7 @@ class HostInsights(GenericAPIView): session = self._get_session(username, password) headers = self._get_headers() - data = self._get_insights(session, headers) + data = self._get_insights(host, session, headers) return Response(data, status=status.HTTP_200_OK) def handle_exception(self, exc):