Skip to content

Commit

Permalink
Reverted changes in add.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Shashank Venkat authored and shatakshiiii committed Feb 26, 2025
1 parent 6861808 commit 720f66a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ansible_creator/subcommands/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ def _plugin_scaffold(self, plugin_path: Path) -> None:

elif self._plugin_type == "module":
template_data = self._get_plugin_template_data()
plugin_path = self._add_path / "plugins" / "sample_module"
plugin_path.mkdir(parents=True, exist_ok=True)
self._perform_module_plugin_scaffold(template_data, plugin_path)
else:
msg = f"Unsupported plugin type: {self._plugin_type}"
Expand Down Expand Up @@ -251,8 +253,6 @@ def _perform_module_plugin_scaffold(
template_data: TemplateData,
plugin_path: Path,
) -> None:
plugin_path = self._add_path / "plugins" / "sample_module"
plugin_path.mkdir(parents=True, exist_ok=True)
resources = ("collection_project.plugins.sample_module",)
self._perform_plugin_scaffold(resources, template_data, plugin_path)

Expand Down

0 comments on commit 720f66a

Please sign in to comment.