Skip to content

Commit b2ad56b

Browse files
author
JiaDe
committed
fix: Dockerfile templates search path, skill_loader unused param
1 parent d460e87 commit b2ad56b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

agent-container/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ RUN HOME=/root && mkdir -p /root/.openclaw && \
4040

4141
# Find and copy templates so OpenClaw can find them from any cwd
4242
RUN mkdir -p /app/docs/reference && \
43-
TEMPLATE_DIR=$(find /usr/local/lib/node_modules -path "*/openclaw/docs/reference/templates" -type d 2>/dev/null | head -1) && \
43+
TEMPLATE_DIR=$(find /usr/lib/node_modules /usr/local/lib/node_modules -path "*/openclaw/docs/reference/templates" -type d 2>/dev/null | head -1) && \
4444
if [ -n "$TEMPLATE_DIR" ]; then cp -r "$TEMPLATE_DIR" /app/docs/reference/templates; \
4545
else echo "WARNING: templates not found, creating empty dir" && mkdir -p /app/docs/reference/templates; fi
4646

agent-container/skill_loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
logger = logging.getLogger(__name__)
3333

3434

35-
def get_tenant_roles(ssm, stack_name, tenant_id, region):
35+
def get_tenant_roles(ssm, stack_name, tenant_id):
3636
"""Read tenant's role list from SSM permission profile."""
3737
try:
3838
resp = ssm.get_parameter(
@@ -256,7 +256,7 @@ def main():
256256
logger.info("=== Skill Loader START tenant=%s ===", args.tenant)
257257

258258
# Get tenant roles for permission filtering
259-
roles = get_tenant_roles(ssm, args.stack, args.tenant, args.region)
259+
roles = get_tenant_roles(ssm, args.stack, args.tenant)
260260

261261
# Layer 2: S3 hot-load skills
262262
l2 = load_layer2_skills(s3, args.bucket, args.stack, args.tenant, roles, args.workspace)

0 commit comments

Comments
 (0)