docker_builder updating template incorrectly

dict.update updates a dict in place...fix the code to update the dict
properly.
This commit is contained in:
Craig Tracey 2014-11-17 18:41:24 -05:00
parent c9137f7f39
commit 87509297f7
1 changed files with 2 additions and 1 deletions

View File

@ -111,7 +111,8 @@ class DockerBuilder(Builder):
self.envvars['PATH'] = "%s:$PATH" % path
def _render_dockerfile(self, extra_vars):
template_vars = self.__dict__.update(extra_vars)
template_vars = self.__dict__
template_vars.update(extra_vars)
template_loader = jinja2.FileSystemLoader(searchpath='/')
template_env = jinja2.Environment(loader=template_loader)
template = template_env.get_template(self.template)