Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 5a9d764

Browse files
committed
unifying variable names (in other words: bugfix)
1 parent bf86110 commit 5a9d764

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

paperspace/cli/jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def list_jobs(api_key, **filters):
7979
@click.option('--useDockerfile', 'useDockerfile', help="Flag: using Dockerfile")
8080
@click.option('--isPreemptible', 'isPreemptible', help="Flag: isPreemptible")
8181
@click.option('--project', 'project', help="Project name")
82-
@click.option('--projectHandle', '--projectId', 'projectId', help="Project handle", required=True)
82+
@click.option('--projectHandle', '--projectId', 'projectHandle', help="Project handle", required=True)
8383
@click.option('--startedByUserId', 'startedByUserId', help="User ID")
8484
@click.option('--relDockerfilePath', 'relDockerfilePath', help="Relative path to Dockerfile")
8585
@click.option('--registryUsername', 'registryUsername', help="Docker registry username")

paperspace/commands/jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def execute(self, json_):
153153
workspace_url = self._workspace_handler.upload_workspace(json_)
154154
if workspace_url:
155155
json_['workspaceFileName'] = workspace_url
156-
156+
json_['projectId'] = json_.get('projectId', json_.get('projectHandle'))
157157
response = self.api.post(url, json_)
158158
self._log_message(response,
159159
"Job created",

0 commit comments

Comments
 (0)