diff --git a/app/api/v2/managers/operation_api_manager.py b/app/api/v2/managers/operation_api_manager.py index 7754bf977..2d29aec66 100644 --- a/app/api/v2/managers/operation_api_manager.py +++ b/app/api/v2/managers/operation_api_manager.py @@ -98,8 +98,6 @@ async def create_potential_link(self, operation_id: str, data: dict, access: Bas agent = await self.get_agent(operation, data) if data['executor']['name'] not in agent.executors: raise JsonHttpBadRequest(f'Agent {agent.paw} missing specified executor') - encoded_command = self._encode_string(agent.replace(self._encode_string(data['executor']['command']), - file_svc=self.services['file_svc'])) executor = self.build_executor(data=data.pop('executor', {}), agent=agent) ability = self.build_ability(data=data.pop('ability', {}), executor=executor) await self._call_ability_plugin_hooks(ability, executor)