Skip to content

Commit

Permalink
Merge pull request #628 from Tencent/bugfix_logo_save_fail
Browse files Browse the repository at this point in the history
Bugfix logo save fail
  • Loading branch information
wklken authored Nov 9, 2021
2 parents 6eb93e7 + d99f860 commit 4a58e7b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion paas2/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.13.12
2.13.13
4 changes: 2 additions & 2 deletions paas2/paas/saas/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,12 @@ def extract_logo_file(filename, path, saas_app_code):
is_replace_applog = filecmp.cmp(logo_local_path, applogo_path)

# replace saaslogo/*.png
with open(logo_local_path, "w") as logo_f:
with open(logo_local_path, "wb") as logo_f:
logo_f.write(logo_content)

# if user not defined it, the put into applogo
if not os.path.exists(applogo_path) or is_replace_applog:
with open(applogo_path, "w") as logo_f:
with open(applogo_path, "wb") as logo_f:
logo_f.write(logo_content)
except Exception:
message = u"%s Unzip to get app.yml failed" % filename
Expand Down
3 changes: 3 additions & 0 deletions paas2/release.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Release Log
===============================
# 2.13.13
- bugfix: smart logo save fail

# 2.13.12
- bugfix: bkauth_user table missing will 500 after upgrade to django 1.11.29

Expand Down

0 comments on commit 4a58e7b

Please sign in to comment.