Skip to content

Commit

Permalink
Reverting:
Browse files Browse the repository at this point in the history
- [CLI] The `dstack config` didn't work (used GET `/api/projects/{project_name}` instead of POST `/api/projects/{project_name}/info`)
  • Loading branch information
peterschmidt85 committed Aug 11, 2023
1 parent 2e81e88 commit 88c68d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/dstack/api/hub/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ def _headers(self):

def get_project_info(self) -> ProjectInfo:
resp = _make_hub_request(
requests.get,
requests.post,
host=self.url,
url=f"{self.url}/api/projects/{self.project}",
url=f"{self.url}/api/projects/{self.project}/info",
headers=self._headers(),
)
if resp.ok:
Expand Down

0 comments on commit 88c68d8

Please sign in to comment.