Skip to content

Commit

Permalink
reset installation_tmp_map
Browse files Browse the repository at this point in the history
  • Loading branch information
feng-j678 committed Jun 6, 2023
1 parent 45823ac commit 3e1cd68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/src/service_interfaces/StatusHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def __init__(self, env_layer, execution_config, composite_logger, telemetry_writ
self.__installation_total_error_count = 0 # All errors during install, includes errors not in error objects due to size limit
self.__maintenance_window_exceeded = False
self.__installation_reboot_status = Constants.RebootStatus.NOT_NEEDED
self.__truncated_installation_patches = []

# Internal in-memory representation of Patch Assessment data
self.__assessment_substatus_json = None
Expand Down Expand Up @@ -89,7 +88,7 @@ def __init__(self, env_layer, execution_config, composite_logger, telemetry_writ
# Update patch metadata summary in status for auto patching installation requests, to be reported to healthstore
if (execution_config.maintenance_run_id is not None or execution_config.health_store_id is not None) and execution_config.operation.lower() == Constants.INSTALLATION.lower():
if self.__installation_reboot_status != Constants.RebootStatus.STARTED:
self.set_patch_metadata_for_healthstore_substatus_json(report_to_healthstore=True, wait_after_update=True)
self.set_patch_metadata_for_healthstore_substatus_json(report_to_healthstore=True, wait_after_update=True)
# updating metadata summary again with reporting to healthstore turned off
self.set_patch_metadata_for_healthstore_substatus_json(report_to_healthstore=False, wait_after_update=False)
else:
Expand All @@ -110,6 +109,7 @@ def reset_assessment_data(self):
self.__assessment_total_error_count = 0
self.__truncated_patches = []
self.__assessment_tmp_map = {}
self.__installation_tmp_map = {}

def set_package_assessment_status(self, package_names, package_versions, classification="Other", status="Available"):
""" Externally available method to set assessment status for one or more packages of the **SAME classification and status** """
Expand Down

0 comments on commit 3e1cd68

Please sign in to comment.