Skip to content

Commit

Permalink
Merge branch 'fix/chore-fix' into dev/plugin-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Dec 9, 2024
2 parents 6868ee5 + 527c1cf commit 80b3de5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions api/core/plugin/manager/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ def fetch_agent_providers(self, tenant_id: str) -> list[PluginAgentProviderEntit
def transformer(json_response: dict[str, Any]) -> dict:
for provider in json_response.get("data", []):
declaration = provider.get("declaration", {}) or {}
declaration["identity"]["name"] = (
f"{provider.get('plugin_id')}/{declaration.get('identity', {}).get('name')}"
)
provider_name = declaration.get("identity", {}).get("name")
for strategy in declaration.get("strategies", []):
strategy["identity"]["provider"] = provider_name
Expand Down

0 comments on commit 80b3de5

Please sign in to comment.