Commit 87eb0e0e authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

slapgrid: fix agregateAndSendUsage in python3

parent 0c25cfac
Pipeline #22838 passed with stage
in 0 seconds
......@@ -1718,7 +1718,7 @@ stderr_logfile_backups=1
file_path = os.path.join(dir_reports, filename)
if os.path.exists(file_path):
with open(file_path, 'r') as f:
with open(file_path, 'rb') as f:
usage = f.read()
# We check the validity of xml content of each reports
......@@ -1765,7 +1765,7 @@ stderr_logfile_backups=1
file_path = os.path.join(computer_report_dir, filename)
if os.path.exists(file_path):
with open(file_path, 'r') as f:
with open(file_path, 'rb') as f:
usage = f.read()
if self.validateXML(usage, computer_consumption_model):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment