Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit dd94c23

Browse files
committed
Drop unused request_lease method
1 parent d90781e commit dd94c23

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

  • packages/jumpstarter/jumpstarter/config

packages/jumpstarter/jumpstarter/config/client.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,6 @@ def list_exporters(
8484
with start_blocking_portal() as portal:
8585
return portal.call(self.list_exporters_async, page_size, page_token, filter)
8686

87-
def request_lease(self, selector: str):
88-
with start_blocking_portal() as portal:
89-
return portal.call(self.request_lease_async, selector, portal)
90-
9187
def list_leases(self, filter: str):
9288
with start_blocking_portal() as portal:
9389
return portal.call(self.list_leases_async, filter)
@@ -149,29 +145,6 @@ async def delete_lease_async(self, name: str):
149145
name=name,
150146
)
151147

152-
async def request_lease_async(
153-
self,
154-
selector: str,
155-
portal: BlockingPortal,
156-
):
157-
# dynamically import to avoid circular imports
158-
from jumpstarter.client import Lease
159-
160-
lease = Lease(
161-
channel=await self.channel(),
162-
namespace=self.metadata.namespace,
163-
name=None,
164-
selector=selector,
165-
duration=timedelta(minutes=30),
166-
portal=portal,
167-
allow=self.drivers.allow,
168-
unsafe=self.drivers.unsafe,
169-
tls_config=self.tls,
170-
grpc_options=self.grpcOptions,
171-
)
172-
with translate_grpc_exceptions():
173-
return await lease.request_async()
174-
175148
async def list_leases_async(self, filter: str):
176149
svc = ClientService(channel=await self.channel(), namespace=self.metadata.namespace)
177150
with translate_grpc_exceptions():

0 commit comments

Comments
 (0)