Marvin: Fix deployDataCenter's cleanup (#7521)

This commit is contained in:
Vishesh 2023-05-12 14:16:52 +05:30 committed by GitHub
parent 44024a8a8b
commit 83fd75f707
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1133,7 +1133,7 @@ class DeleteDataCenters:
print("\n====DeployDC: CleanUp Started====") print("\n====DeployDC: CleanUp Started====")
ret = FAILED ret = FAILED
if self.__dcCfgFile: if self.__dcCfgFile:
file_to_read = open(self.__dcCfgFile, 'r') file_to_read = open(self.__dcCfgFile, 'rb')
if file_to_read: if file_to_read:
self.__dcCfg = pickle.load(file_to_read) self.__dcCfg = pickle.load(file_to_read)
if self.__dcCfg: if self.__dcCfg: