Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions instill/configuration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ def save(self) -> None:
c,
)

def set_token(self, alias: str, token: str) -> None:
if self._config.hosts is not None:
self._config.hosts[alias].token = token
self.save()
def set_default(self, url: str, token: str, secure: bool):
self._config.hosts["default"] = _InstillHost(
url=url, secure=secure, token=token
)


global_config = Configuration()
Expand Down
2 changes: 1 addition & 1 deletion instill/resources/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(
self,
client: InstillClient,
name: str,
recipe: pipeline_interface.Recipe,
recipe: pipeline_interface.Recipe | None = None,
) -> None:
super().__init__()
self.client = client
Expand Down