Skip to content

Commit a388586

Browse files
committed
Fix job create without --workspace
(cherry picked from commit 9cac0cf)
1 parent 211587c commit a388586

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

gradient/api_sdk/workspace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def handle(self, input_data):
3939
return workspace_url # nothing to do
4040

4141
# Should be removed as soon it won't be necessary by PS_API
42-
if workspace_path in ('none', None):
42+
if workspace_path == 'none':
4343
return 'none'
4444

4545
if workspace_archive:

gradient/cli/jobs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ def common_jobs_create_options(f):
144144
click.option(
145145
"--workspace",
146146
"workspace",
147+
default=".",
147148
help="Path to workspace directory",
148149
cls=common.GradientOption,
149150
),

0 commit comments

Comments
 (0)