We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 433d028 commit f153365Copy full SHA for f153365
veadk/cloud/cloud_app.py
@@ -105,8 +105,15 @@ def _get_vefaas_application_id_by_name(self) -> str:
105
raise ValueError(
106
"VeFaaS CloudAPP must be set application_name to get application_id."
107
)
108
- # TODO(zakahan): get application id from vefaas application name
109
- vefaas_application_id = ""
+ from veadk.integrations.ve_faas.ve_faas import VeFaaS
+
110
+ vefaas_client = VeFaaS(
111
+ access_key=getenv("VOLCENGINE_ACCESS_KEY"),
112
+ secret_key=getenv("VOLCENGINE_SECRET_KEY"),
113
+ )
114
+ vefaas_application_id = vefaas_client.find_app_id_by_name(
115
+ self.vefaas_application_name
116
117
return vefaas_application_id
118
119
async def _get_a2a_client(self) -> A2AClient:
0 commit comments