From 791b8dbfc710de1d48d0582ed4b30425c4b26e0c Mon Sep 17 00:00:00 2001 From: Nageswara Nandigam <84482346+nagworld9@users.noreply.github.com> Date: Mon, 2 Oct 2023 17:19:40 -0700 Subject: [PATCH] fix agent manifest call frequency (#2923) (#2932) * fix agent manifest call frequency * new approach (cherry picked from commit 655403254331a7f7413c3d7448d83193daa08af3) --- azurelinuxagent/ga/agent_update_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurelinuxagent/ga/agent_update_handler.py b/azurelinuxagent/ga/agent_update_handler.py index 6c93e092ca..a8390c1c7d 100644 --- a/azurelinuxagent/ga/agent_update_handler.py +++ b/azurelinuxagent/ga/agent_update_handler.py @@ -87,7 +87,6 @@ def __update_last_attempt_update_times(self): else: self.update_state.last_attempted_normal_update_time = now self.update_state.last_attempted_hotfix_update_time = now - self.update_state.last_attempted_manifest_download_time = now def __should_agent_attempt_manifest_download(self): """ @@ -103,6 +102,7 @@ def __should_agent_attempt_manifest_download(self): if next_attempt_time > now: return False + self.update_state.last_attempted_manifest_download_time = now return True @staticmethod