Skip to content

Commit 5fdea61

Browse files
authored
Update amddevcloud API url (#4158)
* Update amddevcloud API url * Update tests
1 parent 06676a5 commit 5fdea61

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/dstack/_internal/core/backends/amddevcloud/configurator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class AMDDevCloudConfigurator(BaseDigitalOceanConfigurator):
1717
TYPE = BackendType.AMDDEVCLOUD
1818
BACKEND_CLASS = AMDDevCloudBackend
19-
API_URL = "https://api-amd.digitalocean.com"
19+
API_URL = "https://api.devcloud.amd.com"
2020

2121
def get_backend(self, record: BackendRecord) -> BaseDigitalOceanBackend:
2222
config = self._get_config(record)

src/tests/_internal/core/backends/digitalocean_base/test_compute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def compute() -> BaseDigitalOceanCompute:
3232
with patch("dstack._internal.core.backends.digitalocean_base.compute.DigitalOceanAPIClient"):
3333
return BaseDigitalOceanCompute(
3434
config=Mock(creds=Mock(api_key="key"), regions=None, project_name=None),
35-
api_url="https://api-amd.digitalocean.com",
35+
api_url="https://api.devcloud.amd.com",
3636
type=BackendType.AMDDEVCLOUD,
3737
)
3838

0 commit comments

Comments
 (0)