Fix data being replicated on VM's metadata file in the VR (#10987)

This commit is contained in:
Daniel Augusto Veronezi Salvador 2025-06-13 15:13:09 -03:00 committed by GitHub
parent 675ee2ab39
commit 380884ed50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -908,6 +908,7 @@ class CsVmMetadata(CsDataBag):
if os.path.exists(metamanifest):
fh = open(metamanifest, "a+")
self.__exflock(fh)
fh.seek(0)
if file not in fh.read():
fh.write(file + '\n')
self.__unflock(fh)