Skip to content
Open
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
1 change: 1 addition & 0 deletions src/tetra_rp/core/resources/resource_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ async def get_or_deploy_resource(

log.debug(f"{existing} exists, reusing.")
log.info(f"URL: {existing.url}")
config.id = existing.id
return existing

if deployed_resource := await config.deploy():
Expand Down
1 change: 1 addition & 0 deletions src/tetra_rp/core/resources/serverless.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ async def deploy(self) -> "DeployableResource":
result = await client.create_endpoint(payload)

if endpoint := self.__class__(**result):
self.id = endpoint.id
return endpoint

raise ValueError("Deployment failed, no endpoint was returned.")
Expand Down
Loading