Merge "Fix system raising alarm due to outdated file in memory"

This commit is contained in:
Zuul
2023-09-29 15:20:46 +00:00
committed by Gerrit Code Review

View File

@@ -1,9 +1,10 @@
"""
Copyright (c) 2014-2022 Wind River Systems, Inc.
Copyright (c) 2014-2023 Wind River Systems, Inc.
SPDX-License-Identifier: Apache-2.0
"""
import gc
import json
import os
import random
@@ -546,6 +547,9 @@ class PatchAgent(PatchService):
hello_ack = PatchMessageHelloAgentAck()
hello_ack.send(self.sock_out)
# Call python garbage collector to ensure the removal of cleared flags
gc.collect()
# Indicate if the method was successful
# success means no change needed, or a change worked.
return success