Skip to content

Commit

Permalink
Fixed the send_email_aggregation issue (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
athiruma authored Mar 25, 2024
1 parent adb1127 commit 0889b98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cloud_governance/main/environment_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ def get_aws_account_alias_name(self):
account_alias = iam_client.list_account_aliases()['AccountAliases']
if account_alias:
return account_alias[0].upper()
return os.environ.get('account', '').upper()
except:
return os.environ.get('account', '').upper()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __get_es_data(self):
:return:
:rtype:
"""
current_date = (datetime.utcnow().date() - timedelta(days=1)).__str__()
current_date = (datetime.utcnow().date()).__str__()
policy_es_index = self.__environment_variables.get('es_index')
account_name = (self.__environment_variables.get('account', '').upper()
.replace('OPENSHIFT-', '')
Expand Down

0 comments on commit 0889b98

Please sign in to comment.