File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/ansible_creator/subcommands Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -210,9 +210,7 @@ def _plugin_scaffold(self, plugin_path: Path) -> None:
210
210
self ._perform_lookup_plugin_scaffold (template_data , plugin_path )
211
211
elif self ._plugin_type == "module" :
212
212
template_data = self ._get_plugin_template_data ()
213
- module_path = self ._add_path / "plugins" / "sample_module"
214
- module_path .mkdir (parents = True , exist_ok = True )
215
- self ._perform_module_plugin_scaffold (template_data , module_path )
213
+ self ._perform_module_plugin_scaffold (template_data , plugin_path )
216
214
else :
217
215
msg = f"Unsupported plugin type: { self ._plugin_type } "
218
216
raise CreatorError (msg )
@@ -252,8 +250,10 @@ def _perform_module_plugin_scaffold(
252
250
template_data : TemplateData ,
253
251
plugin_path : Path ,
254
252
) -> None :
253
+ module_path = self ._add_path / "plugins" / "sample_module"
254
+ module_path .mkdir (parents = True , exist_ok = True )
255
255
resources = ("collection_project.plugins.sample_module" ,)
256
- self ._perform_plugin_scaffold (resources , template_data , plugin_path )
256
+ self ._perform_plugin_scaffold (resources , template_data , module_path )
257
257
258
258
def _perform_plugin_scaffold (
259
259
self ,
You can’t perform that action at this time.
0 commit comments