Skip to content

Commit

Permalink
fixed encoded command ref
Browse files Browse the repository at this point in the history
  • Loading branch information
bjeffries committed Dec 3, 2024
1 parent 76b17e7 commit a06c97e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/v2/managers/operation_api_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async def create_potential_link(self, operation_id: str, data: dict, access: Bas
ability = self.build_ability(data=data.pop('ability', {}), executor=executor)
for hook, fcall in executor.HOOKS.items():
await fcall(ability, executor)
encoded_command = self._encode_string(agent.replace(self._encode_string(executor.command),
encoded_command = self._encode_string(agent.replace(self._encode_string(data['executor']['command']),
file_svc=self.services['file_svc']))
link = Link.load(dict(command=encoded_command, plaintext_command=encoded_command, paw=agent.paw, ability=ability, executor=executor,
status=operation.link_status(), score=data.get('score', 0), jitter=data.get('jitter', 0),
Expand Down

0 comments on commit a06c97e

Please sign in to comment.