marvin: make deployDataCenter.py script py2/py3 compatible (#5139)

This commit is contained in:
Pearl Dsilva 2021-07-13 07:22:47 +05:30 committed by GitHub
parent a8cfb77b2b
commit 2e376f2195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -71,9 +71,9 @@ class DeployDataCenters(object):
ts = strftime("%b_%d_%Y_%H_%M_%S", localtime())
dc_file_path = "dc_entries_" + str(ts) + ".obj"
file_to_write = open(dc_file_path, 'w')
file_to_write = open(dc_file_path, 'wb')
if file_to_write:
pickle.dump(self.__cleanUp, file_to_write)
pickle.dump(self.__cleanUp, file_to_write, protocol=0)
print("\n=== Data Center Settings are dumped to %s===" % dc_file_path)
self.__tcRunLogger.debug("\n=== Data Center Settings are dumped to %s===" % dc_file_path)
except Exception as e: