Skip to content

Commit

Permalink
fix wrong template path for drivers (#2417)
Browse files Browse the repository at this point in the history
For the new plugin system, molecule has to look for cookiecutter
templates inside the plugin (drivers or verifiers) folder and not in the
main molecule folder.

Signed-off-by: shortmann <[email protected]>
  • Loading branch information
shortmann authored and ssbarnea committed Oct 28, 2019
1 parent 3227994 commit 85af6bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion molecule/command/init/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def execute(self):
self._process_templates(template_directory, self._command_args, role_directory)
scenario_base_directory = os.path.join(role_directory, role_name)
templates = [
'scenario/driver/{driver_name}'.format(**self._command_args),
api.drivers()[self._command_args['driver_name']].template_dir(),
api.verifiers()[self._command_args['verifier_name']].template_dir(),
]
for template in templates:
Expand Down

0 comments on commit 85af6bd

Please sign in to comment.