You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ga...@apache.org on 2021/03/12 17:03:49 UTC
[cloudstack] 10/12: write as byte[]
This is an automated email from the ASF dual-hosted git repository.
gabriel pushed a commit to branch python3-vr
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
commit f151e7b543b6cb959f34c7ff75a330d80deeb524
Author: Daan Hoogland <da...@onecht.net>
AuthorDate: Tue Mar 9 17:54:05 2021 +0100
write as byte[]
---
systemvm/debian/opt/cloud/bin/get_diagnostics_files.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/systemvm/debian/opt/cloud/bin/get_diagnostics_files.py b/systemvm/debian/opt/cloud/bin/get_diagnostics_files.py
index 3b3e9d1..8790821 100755
--- a/systemvm/debian/opt/cloud/bin/get_diagnostics_files.py
+++ b/systemvm/debian/opt/cloud/bin/get_diagnostics_files.py
@@ -129,9 +129,9 @@ def generate_retrieved_files_txt(zip_file, files_found, files_not_found):
try:
with open(output_file, 'wb', 0) as man:
for i in files_found:
- man.write(i + '\n')
+ man.write(i + b'\n')
for j in files_not_found:
- man.write(j + 'File Not Found!!\n')
+ man.write(j + b' File Not Found!!\n')
zip_file.write(output_file, output_file)
finally:
cleanup_cmd = "rm -f %s" % output_file