Skip to content

Commit

Permalink
Fix file already exists error in install.py (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgeorge-db committed Sep 19, 2023
1 parent c079fb3 commit fcd8fb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/databricks/labs/ucx/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _configure(self):
try:
self._ws.workspace.get_status(self._config_file)
logger.info(f"UCX is already configured. See {ws_file_url}")
if self._prompts and self._question("Type 'yes' to open config file in the browser") == "yes":
if self._prompts and self._question("Open config file in the browser", default="yes") == "yes":
webbrowser.open(ws_file_url)
return
except DatabricksError as err:
Expand Down Expand Up @@ -271,7 +271,7 @@ def _job_notebook_task(self, jobs_task: jobs.Task, task: Task) -> jobs.Task:
local_notebook = self._this_file.parent / task.notebook
remote_notebook = f"{self._install_folder}/{local_notebook.name}"
with local_notebook.open("rb") as f:
self._ws.workspace.upload(remote_notebook, f)
self._ws.workspace.upload(remote_notebook, f, overwrite=True)
return replace(
jobs_task,
notebook_task=jobs.NotebookTask(
Expand Down

0 comments on commit fcd8fb8

Please sign in to comment.