mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Appease flake8
This commit is contained in:
parent
e2861c6c39
commit
49ba6c6b3d
@ -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 {}'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user