Skip to content

Commit

Permalink
Cleanup client API (#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov authored Jul 4, 2019
1 parent 535c156 commit 201b6ff
Show file tree
Hide file tree
Showing 12 changed files with 325 additions and 411 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.D/879.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Stabilize jobs API
2 changes: 0 additions & 2 deletions neuromation/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
from .jobs import (
Container,
HTTPPort,
Image,
JobDescription,
JobStatus,
JobStatusHistory,
Expand All @@ -45,7 +44,6 @@
"DEFAULT_CONFIG_PATH",
"CONFIG_ENV_NAME",
"DockerImageOperation",
"Image",
"ImageNameParser",
"JobDescription",
"JobStatus",
Expand Down
2 changes: 1 addition & 1 deletion neuromation/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(
self._core = _Core(
connector, self._config.url, self._config.auth_token.token, cookie, timeout
)
self._jobs = Jobs._create(self._core, self._config)
self._jobs = Jobs._create(self._core, self._config, self.username)
self._storage = Storage._create(self._core, self._config)
self._users = Users._create(self._core)
self._images: Optional[Images] = None
Expand Down
Loading

0 comments on commit 201b6ff

Please sign in to comment.