-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically upgrade existing installations to avoid breaking changes (
#985) This PR incorporates the work from databrickslabs/blueprint#50, which enables smoother cross-version upgrades. Fix #471
- Loading branch information
Showing
3 changed files
with
130 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# pylint: disable=invalid-name,unused-argument | ||
import logging | ||
|
||
from databricks.labs.blueprint.installation import Installation | ||
from databricks.sdk import WorkspaceClient | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
def upgrade(installation: Installation, ws: WorkspaceClient): | ||
installation.upload('logs/README.md', b'# This folder contains logs from UCX workflows') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters