mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix data being replicated on VM's metadata file in the VR (#10987)
This commit is contained in:
parent
675ee2ab39
commit
380884ed50
@ -908,6 +908,7 @@ class CsVmMetadata(CsDataBag):
|
|||||||
if os.path.exists(metamanifest):
|
if os.path.exists(metamanifest):
|
||||||
fh = open(metamanifest, "a+")
|
fh = open(metamanifest, "a+")
|
||||||
self.__exflock(fh)
|
self.__exflock(fh)
|
||||||
|
fh.seek(0)
|
||||||
if file not in fh.read():
|
if file not in fh.read():
|
||||||
fh.write(file + '\n')
|
fh.write(file + '\n')
|
||||||
self.__unflock(fh)
|
self.__unflock(fh)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user