only swallow exception when try to load warning message
print out exception detail
MODIFY
deploy-board/deploy_board/templates/deploys/warning_no_nimbus_project_no_deploy.tmpl
deploy-board/deploy_board/templates/deploys/warning_no_nimbus_project_no_deploy.tmpl
<div id="noProjectNoDeployAlert" class="alert alert-danger" role="alert" align="center" style="{{ hidden }}">
<a href="#" class="close" data-dismiss="alert">&times;</a>
- <i><b style="font-size:24px;">No owner, no deploys</b></i>
+ <i><b style="font-size:24px;">No project, no deploys</b></i>
<p>This teletraan stage does not belong to a project.</p>
<p>By February 26th, we will disable all deploys for any stages not owned by a project.</p>
<p>You can claim a stage <a href="{{transfer_ownership_url}}" target="_blank" rel="noopener">here</a>.

MODIFY
deploy-board/deploy_board/webapp/env_views.py
deploy-board/deploy_board/webapp/env_views.py
@@ -35,6 +35,7 @@ import random
import json
from helpers import builds_helper, environs_helper, agents_helper, ratings_helper, deploys_helper, \
systems_helper, environ_hosts_helper, clusters_helper, tags_helper, groups_helper, schedules_helper
+from helpers.exceptions import TeletraanException
import math
from dateutil.parser import parse
import calendar
@@ -333,8 +334,11 @@ class EnvLandingView(View):
break
if stage_with_external_id is not None and stage_with_external_id['externalId'] is not None:
+ try:
existing_stage_identifier = environs_helper.get_nimbus_identifier(stage_with_external_id['externalId'])
project_name_is_default = True if existing_stage_identifier is not None and existing_stage_identifier['projectName'] == "default" else False
+ except TeletraanException as detail:
+ log.error('Handling TeletraanException when trying to access nimbus API, error message {}'.format(detail))
if IS_PINTEREST:
basic_cluster_info = clusters_helper.get_cluster(request, env.get('clusterName'))

only swallow exception when try to load warning message (#643)

print out exception detail