Esempio n. 1
0
    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)
Esempio n. 2
0
    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)
Esempio n. 3
0
def test_render_template():
    template = "{{ foo }} = {{ bar }}"

    assert "foo = bar" == util.render_template(template, foo="foo", bar="bar")
Esempio n. 4
0
def test_render_template():
    template = "{{ foo }} = {{ bar }}"

    assert "foo = bar" == util.render_template(template, foo='foo', bar='bar')
Esempio n. 5
0
def test_render_template():
    template = "{{ foo }} = {{ bar }}"

    "foo = bar" == util.render_template(template, foo='foo', bar='bar')