Commit
·
244c57f
1
Parent(s):
dd0eedf
Fix: Resolve UnboundLocalError in write_file
Browse files
src/nacc_orchestrator/service.py
CHANGED
|
@@ -257,13 +257,13 @@ class OrchestratorService:
|
|
| 257 |
|
| 258 |
self.audit.record(
|
| 259 |
"write_file",
|
| 260 |
-
node=
|
| 261 |
path=path,
|
| 262 |
content_length=len(content)
|
| 263 |
)
|
| 264 |
|
| 265 |
return {
|
| 266 |
-
"node_id":
|
| 267 |
"path": path,
|
| 268 |
"success": response.get("success", False),
|
| 269 |
"message": response.get("message", ""),
|
|
|
|
| 257 |
|
| 258 |
self.audit.record(
|
| 259 |
"write_file",
|
| 260 |
+
node=target_node_id,
|
| 261 |
path=path,
|
| 262 |
content_length=len(content)
|
| 263 |
)
|
| 264 |
|
| 265 |
return {
|
| 266 |
+
"node_id": target_node_id,
|
| 267 |
"path": path,
|
| 268 |
"success": response.get("success", False),
|
| 269 |
"message": response.get("message", ""),
|