Skip to content

Commit 6861808

Browse files
Shashank Venkatshatakshiiii
authored andcommitted
Update add.py
1 parent 7dc0381 commit 6861808

File tree

1 file changed

+4
-3
lines changed
  • src/ansible_creator/subcommands

1 file changed

+4
-3
lines changed

src/ansible_creator/subcommands/add.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ def _plugin_scaffold(self, plugin_path: Path) -> None:
208208
elif self._plugin_type == "lookup":
209209
template_data = self._get_plugin_template_data()
210210
self._perform_lookup_plugin_scaffold(template_data, plugin_path)
211+
211212
elif self._plugin_type == "module":
212213
template_data = self._get_plugin_template_data()
213214
self._perform_module_plugin_scaffold(template_data, plugin_path)
@@ -250,10 +251,10 @@ def _perform_module_plugin_scaffold(
250251
template_data: TemplateData,
251252
plugin_path: Path,
252253
) -> None:
253-
module_path = self._add_path / "plugins" / "sample_module"
254-
module_path.mkdir(parents=True, exist_ok=True)
254+
plugin_path = self._add_path / "plugins" / "sample_module"
255+
plugin_path.mkdir(parents=True, exist_ok=True)
255256
resources = ("collection_project.plugins.sample_module",)
256-
self._perform_plugin_scaffold(resources, template_data, module_path)
257+
self._perform_plugin_scaffold(resources, template_data, plugin_path)
257258

258259
def _perform_plugin_scaffold(
259260
self,

0 commit comments

Comments
 (0)