Skip to content

Commit b796966

Browse files
committed
added new parameter to the check usage method call
1 parent a602f0b commit b796966

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/workspaces_app/workspaces_app/workspaces_helper.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,15 @@ def get_termination_status(self, workspace_id, billable_time, tags):
181181
self.settings.get('dateTimeValues').get('current_month_last_day') or
182182
(self.settings.get('testEndOfMonth'))
183183
):
184-
log.debug('Today is the last day of the month or the TestEndOfMonth parameter is set to yes.')
184+
log.debug(f"The value for current_month_last_day is {self.settings.get('dateTimeValues').get('current_month_last_day')}")
185+
log.debug(f"The value for testEndOfMonth is {(self.settings.get('testEndOfMonth'))}")
185186
log.debug(f'Processing further for workspace id {workspace_id}')
186187
last_known_user_connection_timestamp = self.get_last_known_user_connection_timestamp(workspace_id)
187188
log.debug(f'Last known user connection time stamp is {last_known_user_connection_timestamp}')
188189
workspace_available_on_first_day_of_selected_month = self.check_if_workspace_available_on_first_day_selected_month(workspace_id)
189190
log.debug((f'The value for workspace available on first day of selected period is '
190191
f'{workspace_available_on_first_day_of_selected_month}'))
191-
workspace_used_in_selected_period = workspace_utils.check_if_workspace_used_for_selected_period(last_known_user_connection_timestamp)
192+
workspace_used_in_selected_period = workspace_utils.check_if_workspace_used_for_selected_period(last_known_user_connection_timestamp, self.settings.get('dateTimeValues').get('first_day_selected_month'))
192193
log.debug(f'The value for workspace used in selected period is {workspace_used_in_selected_period}')
193194
if workspace_available_on_first_day_of_selected_month and not workspace_used_in_selected_period:
194195
workspace_terminated = self.check_if_workspace_needs_to_be_terminated(workspace_id)

0 commit comments

Comments
 (0)