Skip to content

Commit

Permalink
Move error counter reset down to end of block. (Azure#2576)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinclark19a authored Apr 29, 2022
1 parent 8e9c1b5 commit dee5fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurelinuxagent/ga/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,11 +489,11 @@ def _try_update_goal_state(self, protocol):
self._goal_state = protocol.get_goal_state()

if self._update_goal_state_error_count > 0:
self._update_goal_state_error_count = 0
message = u"Fetching the goal state recovered from previous errors. Fetched {0} (certificates: {1})".format(
self._goal_state.extensions_goal_state.id, self._goal_state.certs.summary)
add_event(AGENT_NAME, op=WALAEventOperation.FetchGoalState, version=CURRENT_VERSION, is_success=True, message=message, log_event=False)
logger.info(message)
self._update_goal_state_error_count = 0

try:
self._supports_fast_track = conf.get_enable_fast_track() and protocol.client.get_host_plugin().check_vm_settings_support()
Expand Down

0 comments on commit dee5fef

Please sign in to comment.