Skip to content

Commit

Permalink
reassign patches_removed_from assessment/installation to class var
Browse files Browse the repository at this point in the history
  • Loading branch information
feng-j678 committed Nov 20, 2023
1 parent d603c9d commit 6f6e0b6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/core/src/service_interfaces/StatusHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,17 +888,15 @@ def __create_truncated_status_file(self, status_file_size_in_bytes, complete_sta

while status_file_size_in_bytes > Constants.StatusTruncationConfig.INTERNAL_FILE_SIZE_LIMIT_IN_BYTES:
# Start truncation process
patches_retained_in_assessment, patches_removed_from_assessment, patches_retained_in_installation, patches_removed_from_installation = \
patches_retained_in_assessment, self.__assessment_patches_removed, patches_retained_in_installation, self.__installation_patches_removed = \
self.__start_truncation_process(self.__assessment_patches_copy, self.__installation_patches_copy, max_allowed_patches_size_in_bytes, low_pri_index)

if len(patches_removed_from_assessment) > 0:
self.__assessment_patches_removed = patches_removed_from_assessment
if len(self.__assessment_patches_removed) > 0:
self.composite_logger.log_debug("Recomposing truncated status payload: [Substatus={0}]".format(Constants.PATCH_ASSESSMENT_SUMMARY))
truncated_status_file = self.__recompose_truncated_status_file(truncated_status_file=truncated_status_file, truncated_patches=patches_retained_in_assessment,
substatus_message=self.__assessment_substatus_msg_copy, substatus_index=assessment_substatus_index)

if len(patches_removed_from_installation) > 0:
self.__installation_patches_removed = patches_removed_from_installation
if len(self.__installation_patches_removed) > 0:
self.composite_logger.log_debug("Recomposing truncated status payload: [Substatus={0}]".format(Constants.PATCH_INSTALLATION_SUMMARY))
truncated_status_file = self.__recompose_truncated_status_file(truncated_status_file=truncated_status_file, truncated_patches=patches_retained_in_installation,
substatus_message=self.__installation_substatus_msg_copy, substatus_index=installation_substatus_index)
Expand Down

0 comments on commit 6f6e0b6

Please sign in to comment.