Skip to content

Commit 18928e9

Browse files
committed
Adding tool_name variable change
Signed-off-by: Shriti Priya <[email protected]>
1 parent a659ddd commit 18928e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/external/opa/opapluginfilter/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ async def tool_pre_invoke(self, payload: ToolPreInvokePayload, context: PluginCo
137137
policy_apply_config = self._config.applied_to
138138
if policy_apply_config and policy_apply_config.tools:
139139
for tool in policy_apply_config.tools:
140-
tool_name = tool.name
140+
tool_name = tool.tool_name
141141
if payload.name == tool_name:
142142
if tool.context:
143143
tool_context = [ctx.rsplit('.', 1)[-1] for ctx in tool.context]

plugins/external/opa/resources/plugins/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ plugins:
1010
priority: 30
1111
applied_to:
1212
tools:
13-
- name: "fast-time-git-status"
13+
- tool_name: "fast-time-git-status"
1414
context:
1515
- "global.opa_policy_context.git_context"
1616
extensions:

0 commit comments

Comments
 (0)