mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
Appease flake8
This commit is contained in:
@@ -1682,7 +1682,7 @@ class HostInsights(GenericAPIView):
|
|||||||
settings.INSIGHTS_URL_BASE, host.insights_system_id)
|
settings.INSIGHTS_URL_BASE, host.insights_system_id)
|
||||||
res = self._call_insights_api(url, session, headers)
|
res = self._call_insights_api(url, session, headers)
|
||||||
try:
|
try:
|
||||||
platform_id = res['results'][0]['id']
|
res['results'][0]['id']
|
||||||
except (IndexError, KeyError):
|
except (IndexError, KeyError):
|
||||||
raise NotFound(
|
raise NotFound(
|
||||||
_('Could not translate Insights system ID {}'
|
_('Could not translate Insights system ID {}'
|
||||||
|
|||||||
Reference in New Issue
Block a user