Removed basename. Was unneeded

This commit is contained in:
2024-01-07 11:47:11 +13:00
parent 7b96783342
commit 9c5088620f
2 changed files with 3 additions and 16 deletions

View File

@@ -1,16 +1,13 @@
{ {
"role_title": "My Awesome Role", "role_title": "My Awesome Role",
"namespace": "guisea",
"author": "Aaron Guise",
"role_name": "{{ cookiecutter.role_title | lower | replace(' ','_') }}", "role_name": "{{ cookiecutter.role_title | lower | replace(' ','_') }}",
"repo_name": "ansible-role-{{ cookiecutter.role_title | lower | replace(' ','_') }}", "repo_name": "ansible-role-{{ cookiecutter.role_title | lower | replace(' ','_') }}",
"branch_name": "main", "branch_name": "main",
"namespace": "guisea",
"author": "Aaron Guise",
"short_description": "This role does amazing things", "short_description": "This role does amazing things",
"company": "Acme, Inc.", "company": "Acme, Inc.",
"galaxy_username": "{{ cookiecutter.namespace | lower | replace(' ', '') }}", "galaxy_username": "{{ cookiecutter.namespace | lower | replace(' ', '') }}",
"azp_username": "{{ cookiecutter.author | lower | replace(' ', '') }}",
"azp_branch": "main",
"license": "Apache 2.0", "license": "Apache 2.0",
"min_ansible_version": "2.9", "min_ansible_version": "2.9"
"_extensions": ["local_extensions.basename"]
} }

View File

@@ -1,10 +0,0 @@
import os
from cookiecutter.utils import simple_filter
@simple_filter
def basename(path):
return os.path.basename(path)
@simple_filter
def dirname(path):
return os.path.dirname(path)