Skip to content

Commit cbef59d

Browse files
authored
[COST-5029] - Override start date for OCP infra mapping (#5108)
1 parent f5e18ee commit cbef59d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

koku/masu/processor/ocp/ocp_report_parquet_summary_updater.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from django_tenants.utils import schema_context
1313

1414
from api.common import log_json
15+
from api.utils import DateHelper
1516
from koku.pg_partition import PartitionHandlerMixin
1617
from masu.database.ocp_report_db_accessor import OCPReportDBAccessor
1718
from masu.processor.ocp.ocp_cloud_updater_base import OCPCloudUpdaterBase
@@ -167,7 +168,8 @@ def update_summary_tables(self, start_date, end_date, **kwargs):
167168
return start_date, end_date
168169

169170
def check_cluster_infrastructure(self, start_date, end_date):
170-
171+
# Override start date so we map with a more complete dataset
172+
start_date = DateHelper().month_start(start_date)
171173
LOG.info(
172174
log_json(
173175
msg="checking if OCP cluster is running on cloud infrastructure",

0 commit comments

Comments
 (0)