Skip to content

Commit

Permalink
minor change in vriable name
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhim-um committed Oct 14, 2024
1 parent 3473760 commit 0f2963f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/src/bootstrap/Constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __iter__(self):
# Max values
MAX_AUTO_ASSESSMENT_LOGFILE_SIZE_IN_BYTES = 5*1024*1024
MAX_AUTO_ASSESSMENT_WAIT_FOR_MAIN_CORE_EXEC_IN_MINUTES = 3 * 60
MAX_PATCH_DURATION = 235
MAX_PATCH_OPERATION_DURATION_IN_MINUTES = 235

class SystemPaths(EnumBackport):
SYSTEMD_ROOT = "/etc/systemd/system/"
Expand Down
2 changes: 1 addition & 1 deletion src/core/src/core_logic/PatchInstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ def is_install_patches_in_single_batch_enabled(self, maintenance_window, package
dur = datetime.datetime.strptime(self.duration, "%H:%M:%S")
dura = timedelta(hours=dur.hour, minutes=dur.minute, seconds=dur.second)
total_time_in_minutes = self.env_layer.datetime.total_minutes_from_time_delta(dura)
max_maintenance_window_criteria = total_time_in_minutes >= Constants.MAX_PATCH_DURATION
max_maintenance_window_criteria = total_time_in_minutes >= Constants.MAX_PATCH_OPERATION_DURATION_IN_MINUTES
no_inclusion_exclusion_criteria = not (self.package_filter.is_exclusion_list_present() or self.package_filter.is_inclusion_list_present())
classification_criteria = self.package_filter.is_msft_critsec_classification_only()
suse_criteria = self.env_layer.get_package_manager() == Constants.ZYPPER
Expand Down

0 comments on commit 0f2963f

Please sign in to comment.