Skip to content

Commit a99bbe1

Browse files
Fix pass docker repo command back to the cluster config (Azure#538)
1 parent 4d4916e commit a99bbe1

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
22
my-custom-scripts/
33
.aztk
44

5-
# Virtual environments
5+
# Environments
6+
.env
7+
.venv
8+
env/
9+
venv/
610
ENV/
11+
env.bak/
12+
venv.bak/
713

814
# Byte-compiled / optimized / DLL files
915
__pycache__/

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515
"python.formatting.yapfArgs": [
1616
"--style=.style.yapf"
1717
],
18-
"python.pythonPath": "${workspaceFolder}\\ENV\\Scripts\\python.exe"
18+
"python.venvPath": "${workspaceFolder}/.venv/",
19+
"python.pythonPath": "${workspaceFolder}/.venv/Scripts/python.exe"
1920
}

aztk_cli/spark/endpoints/cluster/cluster_create.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ def execute(args: typing.NamedTuple):
5050
username=args.username,
5151
password=args.password,
5252
)))
53+
54+
if args.docker_repo and cluster_conf.toolkit:
55+
cluster_conf.toolkit.docker_repo = args.docker_repo
56+
5357
wait = wait if args.wait is None else args.wait
5458

5559
user_configuration = cluster_conf.user_configuration

0 commit comments

Comments
 (0)