mirror of
https://github.com/ansible/awx.git
synced 2026-04-24 19:25:23 -02:30
Update the error message when we can't discover the platform ID
This commit is contained in:
@@ -1683,7 +1683,9 @@ class HostInsights(GenericAPIView):
|
||||
try:
|
||||
platform_id = res['results'][0]['id']
|
||||
except (IndexError, KeyError):
|
||||
raise NotFound(_('This host is not recognized as an Insights host.'))
|
||||
raise NotFound(
|
||||
_('Could not translate Insights system ID {}'
|
||||
' into an Insights platform ID.').format(host.insights_system_id))
|
||||
|
||||
return platform_id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user