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