Skip to content

Commit

Permalink
CASMCMS-9234: When renaming session templates during migration, use c…
Browse files Browse the repository at this point in the history
…orrect database key to store renamed template
  • Loading branch information
mharding-hpe committed Dec 17, 2024
1 parent a529751 commit a9e03d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- When renaming session templates during migration, use correct database key to store renamed template.

## [2.31.0] - 2024-11-01
### Removed
Expand Down
2 changes: 1 addition & 1 deletion src/bos/server/migrations/sanitize.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def _sanitize_session_template(key: str | bytes, data: dict) -> None:

delete_template(key, data)

new_key = get_tenant_aware_key(name, tenant)
new_key = get_tenant_aware_key(new_name, tenant)
LOGGER.info("Old DB key = '%s', new DB key = '%s'", key, new_key)

new_data["name"] = new_name
Expand Down

0 comments on commit a9e03d1

Please sign in to comment.