Skip to content

Commit

Permalink
Changing file name from markdown_rendering to status_render
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivani-gslab committed Jun 20, 2024
1 parent 31d7a9d commit 90a9b30
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
PLUGIN_NAME = "arista.avd.status_render"

try:
from pyavd.j2filters.markdown_rendering import status_render
from pyavd.j2filters.status_render import status_render
except ImportError as e:
status_render = RaiseOnUse(
AnsibleFilterError(
Expand Down
2 changes: 1 addition & 1 deletion python-avd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ fix-libs: ## Fix/remove various Ansible specifics things from python files
find $(PACKAGE_DIR) -name '*.py' -exec sed -i -e 's/ansible_collections\.arista\.avd\.plugins\.filter.generate_route_target/$(PYAVD_FILTER_IMPORT)\.generate_route_target/g' {} +
find $(PACKAGE_DIR) -name '*.py' -exec sed -i -e 's/ansible_collections\.arista\.avd\.plugins\.filter.hide_passwords/$(PYAVD_FILTER_IMPORT)\.hide_passwords/g' {} +
find $(PACKAGE_DIR) -name '*.py' -exec sed -i -e 's/ansible_collections\.arista\.avd\.plugins\.filter.list_compress/$(PYAVD_FILTER_IMPORT)\.list_compress/g' {} +
find $(PACKAGE_DIR) -name '*.py' -exec sed -i -e 's/ansible_collections\.arista\.avd\.plugins\.filter.markdown_rendering/$(PYAVD_FILTER_IMPORT)\.markdown_rendering/g' {} +
find $(PACKAGE_DIR) -name '*.py' -exec sed -i -e 's/ansible_collections\.arista\.avd\.plugins\.filter.status_render/$(PYAVD_FILTER_IMPORT)\.status_render/g' {} +

find $(PACKAGE_DIR) -name '*.py' -exec sed -i -e 's/ansible_collections\.arista\.avd\.plugins\.filter/$(VENDOR_IMPORT)\.j2\.filter/g' {} +

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion python-avd/pyavd/templater.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def import_filters_and_tests(self) -> None:
from .j2filters.hide_passwords import hide_passwords
from .j2filters.is_in_filter import is_in_filter
from .j2filters.list_compress import list_compress
from .j2filters.markdown_rendering import status_render
from .j2filters.status_render import status_render
from .j2filters.natural_sort import natural_sort
from .j2filters.snmp_hash import snmp_hash
from .j2tests.contains import contains
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
__metaclass__ = type

import pytest
from pyavd.j2filters.markdown_rendering import status_render
from pyavd.j2filters.status_render import status_render

STATE_STRINGS = [("PASS", "github", ":white_check_mark:"), ("FAIL", "test", "FAIL")]

Expand Down

0 comments on commit 90a9b30

Please sign in to comment.