Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions cloud_governance/common/mails/postfix.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,8 @@ def send_email_postfix(self, subject: str, to: any, cc: list, content: str, **kw
to = self.__mail_to
if self.__mail_cc:
cc = self.__mail_cc
to = "yinsong@redhat.com"
cc = []
if not self.__ldap_search.get_user_details(user_name=to):
cc.append('yinsong@redhat.com')
cc.extend(self.__default_admins)
response = {'ok': True}
to = self.prettify_to(to)
cc = self.prettify_cc(cc)
Expand Down
2 changes: 1 addition & 1 deletion cloud_governance/main/environment_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def __init__(self):
self._environment_variables_dict['POLICY_ACTIONS_DAYS'] = literal_eval(
EnvironmentVariables.get_env('POLICY_ACTIONS_DAYS', '[]'))
self._environment_variables_dict['DEFAULT_ADMINS'] = literal_eval(
EnvironmentVariables.get_env('DEFAULT_ADMINS', '[]'))
EnvironmentVariables.get_env('DEFAULT_ADMINS', '["yinsong@redhat.com", "ebattat@redhat.com"]'))
self._environment_variables_dict['KERBEROS_USERS'] = literal_eval(
EnvironmentVariables.get_env('KERBEROS_USERS', '[]'))
self._environment_variables_dict['POLICIES_TO_ALERT'] = literal_eval(
Expand Down