From 49ba6c6b3d29a5437ca6617c29cf5eae91cd81a7 Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Mon, 15 Apr 2019 16:12:08 -0400 Subject: [PATCH] Appease flake8 --- awx/api/views/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/views/__init__.py b/awx/api/views/__init__.py index b3e89fe921..c0554440a9 100644 --- a/awx/api/views/__init__.py +++ b/awx/api/views/__init__.py @@ -1682,7 +1682,7 @@ class HostInsights(GenericAPIView): settings.INSIGHTS_URL_BASE, host.insights_system_id) res = self._call_insights_api(url, session, headers) try: - platform_id = res['results'][0]['id'] + res['results'][0]['id'] except (IndexError, KeyError): raise NotFound( _('Could not translate Insights system ID {}'