enforce max line length of 160 characters

This commit is contained in:
AlanCoding
2017-10-09 09:19:24 -04:00
parent d4af743805
commit f03b40aa50
19 changed files with 387 additions and 132 deletions

View File

@@ -2118,7 +2118,9 @@ class HostInsights(GenericAPIView):
if res.status_code == 401:
return (dict(error=_('Unauthorized access. Please check your Insights Credential username and password.')), status.HTTP_502_BAD_GATEWAY)
elif res.status_code != 200:
return (dict(error=_('Failed to gather reports and maintenance plans from Insights API at URL {}. Server responded with {} status code and message {}').format(url, res.status_code, res.content)), status.HTTP_502_BAD_GATEWAY)
return (dict(error=_(
'Failed to gather reports and maintenance plans from Insights API at URL {}. Server responded with {} status code and message {}'
).format(url, res.status_code, res.content)), status.HTTP_502_BAD_GATEWAY)
try:
filtered_insights_content = filter_insights_api_response(res.json())