@@ -124,8 +124,12 @@ def __init__(
124124
125125 def _get_vefaas_endpoint (
126126 self ,
127- volcengine_ak : str = getenv ("VOLCENGINE_ACCESS_KEY" ),
128- volcengine_sk : str = getenv ("VOLCENGINE_SECRET_KEY" ),
127+ volcengine_ak : str = getenv (
128+ "VOLCENGINE_ACCESS_KEY" , "" , allow_false_values = True
129+ ),
130+ volcengine_sk : str = getenv (
131+ "VOLCENGINE_SECRET_KEY" , "" , allow_false_values = True
132+ ),
129133 ) -> str :
130134 """Fetches the application endpoint from VeFaaS details if not directly provided.
131135
@@ -244,8 +248,12 @@ async def _get_a2a_client(self) -> A2AClient:
244248 def update_self (
245249 self ,
246250 path : str ,
247- volcengine_ak : str = getenv ("VOLCENGINE_ACCESS_KEY" ),
248- volcengine_sk : str = getenv ("VOLCENGINE_SECRET_KEY" ),
251+ volcengine_ak : str = getenv (
252+ "VOLCENGINE_ACCESS_KEY" , "" , allow_false_values = True
253+ ),
254+ volcengine_sk : str = getenv (
255+ "VOLCENGINE_SECRET_KEY" , "" , allow_false_values = True
256+ ),
249257 ):
250258 """Updates the configuration of this cloud application.
251259
@@ -291,8 +299,12 @@ def update_self(
291299
292300 def delete_self (
293301 self ,
294- volcengine_ak : str = getenv ("VOLCENGINE_ACCESS_KEY" ),
295- volcengine_sk : str = getenv ("VOLCENGINE_SECRET_KEY" ),
302+ volcengine_ak : str = getenv (
303+ "VOLCENGINE_ACCESS_KEY" , "" , allow_false_values = True
304+ ),
305+ volcengine_sk : str = getenv (
306+ "VOLCENGINE_SECRET_KEY" , "" , allow_false_values = True
307+ ),
296308 ):
297309 """Deletes this cloud application after interactive confirmation.
298310
0 commit comments