def write_config(self): """ Writes the provisioner's config file to disk and returns None. :return: None """ template = util.render_template(self._get_config_template(), config_options=self.config_options) util.write_file(self.config_file, template)
def write_config(self): """ Writes the provisioner's config file to disk and returns None. :return: None """ # self._verify_config() template = util.render_template( self._get_config_template(), config_options=self.config_options) util.write_file(self.config_file, template)
def test_render_template(): template = "{{ foo }} = {{ bar }}" assert "foo = bar" == util.render_template(template, foo="foo", bar="bar")
def test_render_template(): template = "{{ foo }} = {{ bar }}" assert "foo = bar" == util.render_template(template, foo='foo', bar='bar')
def test_render_template(): template = "{{ foo }} = {{ bar }}" "foo = bar" == util.render_template(template, foo='foo', bar='bar')