Skip to content

Commit c2ab588

Browse files
committed
Also set ROOT_DIR in fill params
1 parent 0e2c5d9 commit c2ab588

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/report_compiler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,8 @@ def get_document(self, config, permitted_resources, tenant, template, fill_param
421421
return 404, "Missing or restricted template: %s" % template
422422

423423
# Set resource dir in fill_params
424-
fill_params["REPORT_DIR"] = self.report_dir + "/"
424+
fill_params["REPORT_DIR"] = self.report_dir.rstrip("/") + "/"
425+
fill_params["ROOT_DIR"] = self.report_dir.rstrip("/") + "/"
425426

426427
# Set the tenant in fill_params
427428
fill_params["TENANT"] = tenant

0 commit comments

Comments
 (0)