diff options
| author | shihaoyue <[email protected]> | 2024-06-19 22:41:03 +0800 |
|---|---|---|
| committer | shihaoyue <[email protected]> | 2024-06-19 22:41:03 +0800 |
| commit | 483c7affa62efd675cbcf43072a4610707da7ae9 (patch) | |
| tree | dbffcc895c59ff5b7c35a7a7bf3a706b32069060 /server/apps | |
| parent | 528fd61fb1f48d3a1ff6b811f7a5fefea5b8222c (diff) | |
bugfix:deliver_task
Diffstat (limited to 'server/apps')
| -rw-r--r-- | server/apps/agentcomm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/apps/agentcomm.py b/server/apps/agentcomm.py index 103b3f1..34e763f 100644 --- a/server/apps/agentcomm.py +++ b/server/apps/agentcomm.py @@ -97,7 +97,7 @@ def deliver_task(task_policy): res = requests.post("http://%s:%s/script/execute" % (ip, port), timeout=3, json={'policy': task_policy.policy_ref.p_exe, 'param': task_policy.policy_param, - 'id' : task_policy.tp_id, + 'id' : str(task_policy.tp_id), }) if res.status_code == 200: return None |
