Skip to content

Commit ccbc238

Browse files
committed
values for variable substitution need to be strings
1 parent 89befe0 commit ccbc238

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stackinator/recipe.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@ def environment_view_meta(self):
296296
# and view path into environment variables using '$@key@' where
297297
# key is one of view_name, mount and view_path.
298298
substitutions = {
299-
"view_name": view["name"],
300-
"mount": self.mount,
301-
"view_path": view["config"]["root"]
299+
"view_name": str(view["name"]),
300+
"mount": str(self.mount),
301+
"view_path": str(view["config"]["root"])
302302
}
303303
fill = lambda s: re.sub(r"\$@(\w+)@", lambda m: substitutions.get(m.group(1), m.group(0)), s,)
304304

0 commit comments

Comments
 (0)