From f24f95b33ee393f8926efd22e403f1aab5713dc5 Mon Sep 17 00:00:00 2001 From: Robert Choi Date: Thu, 16 Sep 2021 10:37:19 +0900 Subject: [PATCH] fix RPC param --- tks_info/update-tks-info-wftpl.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tks_info/update-tks-info-wftpl.yaml b/tks_info/update-tks-info-wftpl.yaml index b726f901..78df0250 100644 --- a/tks_info/update-tks-info-wftpl.yaml +++ b/tks_info/update-tks-info-wftpl.yaml @@ -60,5 +60,5 @@ spec: # TODO: how to dynamically construct app_type param as enum format here? for app_type_, ep in {{inputs.parameters.endpoints}}.items(): - res = app_stub.UpdateApp(info_pb2.UpdateAppRequest(app_group_id="{{workflow.parameters.app_group_id}}", app_type=common_pb2.{{app_type_}}, endpoint=ep, metadata="{}")) + res = app_stub.UpdateApp(info_pb2.UpdateAppRequest(app_group_id="{{workflow.parameters.app_group_id}}", app_type=app_type_, endpoint=ep, metadata="{}")) print("Response code from UpdateApp: %d" % res.code)