Merge pull request #7 from pycontribs/add-template-dir

Allow Molecule to load the cookiecutter correctly
This commit is contained in:
decentral1se 2019-11-16 09:01:47 +07:00 committed by GitHub
commit e5d69b0ebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -141,6 +141,12 @@ class HetznerCloud(Driver):
# instance_config is not on disk.
return {}
def template_dir(self):
return os.path.join(
os.path.dirname(__file__),
"cookiecutter/scenario/driver/{}".format(self.name),
)
def _get_instance_config(self, instance_name):
instance_config_dict = util.safe_load_file(self._config.driver.instance_config)