summaryrefslogtreecommitdiff
path: root/cloudinit/handlers/jinja_template.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/handlers/jinja_template.py')
-rw-r--r--cloudinit/handlers/jinja_template.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/handlers/jinja_template.py b/cloudinit/handlers/jinja_template.py
index ce3accf6..aadfbf86 100644
--- a/cloudinit/handlers/jinja_template.py
+++ b/cloudinit/handlers/jinja_template.py
@@ -83,7 +83,8 @@ def render_jinja_payload_from_file(
if e.errno == EACCES:
raise RuntimeError(
'Cannot render jinja template vars. No read permission on'
- " '%s'. Try sudo" % instance_data_file)
+ " '%s'. Try sudo" % instance_data_file
+ ) from e
rendered_payload = render_jinja_payload(
payload, payload_fn, instance_data, debug)