Allow Molecule to load the cookiecutter correctly

This commit is contained in:
Luke Murphy 2019-11-16 09:00:48 +07:00
parent d79d2965db
commit 9713893c33
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
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)