Skip to content

Commit

Permalink
reverting import changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vibhu-gslab committed Jun 6, 2024
1 parent 5d87936 commit 8d442ed
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 82 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@
from functools import cached_property
from typing import TYPE_CHECKING

try:
from pyavd.j2filters.convert_dicts import convert_dicts

PYAVD_IMPORT_EXCEPTION = None
except ImportError as e:
convert_dicts = None
PYAVD_IMPORT_EXCEPTION = e

from ansible_collections.arista.avd.plugins.filter.convert_dicts import convert_dicts
from ansible_collections.arista.avd.plugins.filter.list_compress import list_compress
from ansible_collections.arista.avd.plugins.filter.range_expand import range_expand
from ansible_collections.arista.avd.plugins.plugin_utils.utils import get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@
from functools import cached_property
from typing import TYPE_CHECKING

try:
from pyavd.j2filters.convert_dicts import convert_dicts

PYAVD_IMPORT_EXCEPTION = None
except ImportError as e:
convert_dicts = None
PYAVD_IMPORT_EXCEPTION = e

from ansible_collections.arista.avd.plugins.filter.convert_dicts import convert_dicts
from ansible_collections.arista.avd.plugins.plugin_utils.utils import get

if TYPE_CHECKING:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@
from functools import cached_property
from typing import TYPE_CHECKING

try:
from pyavd.j2filters.convert_dicts import convert_dicts

PYAVD_IMPORT_EXCEPTION = None
except ImportError as e:
convert_dicts = None
PYAVD_IMPORT_EXCEPTION = e

from ansible_collections.arista.avd.plugins.filter.convert_dicts import convert_dicts
from ansible_collections.arista.avd.plugins.filter.natural_sort import natural_sort
from ansible_collections.arista.avd.plugins.filter.range_expand import range_expand
from ansible_collections.arista.avd.plugins.plugin_utils.errors import AristaAvdError, AristaAvdMissingVariableError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@
from functools import cached_property
from typing import TYPE_CHECKING

try:
from pyavd.j2filters.convert_dicts import convert_dicts

PYAVD_IMPORT_EXCEPTION = None
except ImportError as e:
convert_dicts = None
PYAVD_IMPORT_EXCEPTION = e

from ansible_collections.arista.avd.plugins.filter.convert_dicts import convert_dicts
from ansible_collections.arista.avd.plugins.filter.natural_sort import natural_sort
from ansible_collections.arista.avd.plugins.filter.range_expand import range_expand
from ansible_collections.arista.avd.plugins.plugin_utils.errors.errors import AristaAvdError, AristaAvdMissingVariableError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@
from functools import cached_property
from typing import TYPE_CHECKING

try:
from pyavd.j2filters.convert_dicts import convert_dicts

PYAVD_IMPORT_EXCEPTION = None
except ImportError as e:
convert_dicts = None
PYAVD_IMPORT_EXCEPTION = e

from ansible_collections.arista.avd.plugins.filter.convert_dicts import convert_dicts
from ansible_collections.arista.avd.plugins.plugin_utils.errors import AristaAvdMissingVariableError
from ansible_collections.arista.avd.plugins.plugin_utils.utils import get

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@
from functools import cached_property
from typing import TYPE_CHECKING

try:
from pyavd.j2filters.convert_dicts import convert_dicts

PYAVD_IMPORT_EXCEPTION = None
except ImportError as e:
convert_dicts = None
PYAVD_IMPORT_EXCEPTION = e

from ansible_collections.arista.avd.plugins.filter.convert_dicts import convert_dicts
from ansible_collections.arista.avd.plugins.plugin_utils.merge import merge
from ansible_collections.arista.avd.plugins.plugin_utils.utils import get

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,7 @@

from typing import TYPE_CHECKING, Generator

try:
from pyavd.j2filters.convert_dicts import convert_dicts

PYAVD_IMPORT_EXCEPTION = None
except ImportError as e:
convert_dicts = None
PYAVD_IMPORT_EXCEPTION = e

from ansible_collections.arista.avd.plugins.filter.convert_dicts import convert_dicts
from ansible_collections.arista.avd.plugins.plugin_utils.errors import AvdConversionWarning, AvdDeprecationWarning
from ansible_collections.arista.avd.plugins.plugin_utils.utils import get_all

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,7 @@

from functools import cached_property

try:
from pyavd.j2filters.convert_dicts import convert_dicts

PYAVD_IMPORT_EXCEPTION = None
except ImportError as e:
convert_dicts = None
PYAVD_IMPORT_EXCEPTION = e

from ansible_collections.arista.avd.plugins.filter.convert_dicts import convert_dicts
from ansible_collections.arista.avd.plugins.filter.natural_sort import natural_sort
from ansible_collections.arista.avd.plugins.plugin_utils.avdfacts import AvdFacts
from ansible_collections.arista.avd.plugins.plugin_utils.errors import AristaAvdMissingVariableError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@
from functools import cached_property
from hashlib import sha256

try:
from pyavd.j2filters.convert_dicts import convert_dicts

PYAVD_IMPORT_EXCEPTION = None
except ImportError as e:
convert_dicts = None
PYAVD_IMPORT_EXCEPTION = e

from ansible_collections.arista.avd.plugins.filter.convert_dicts import convert_dicts
from ansible_collections.arista.avd.plugins.filter.generate_esi import generate_esi
from ansible_collections.arista.avd.plugins.filter.generate_route_target import generate_route_target
from ansible_collections.arista.avd.plugins.plugin_utils.eos_designs_shared_utils import SharedUtils
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,7 @@
from ipaddress import ip_network
from itertools import islice

try:
from pyavd.j2filters.convert_dicts import convert_dicts

PYAVD_IMPORT_EXCEPTION = None
except ImportError as e:
convert_dicts = None
PYAVD_IMPORT_EXCEPTION = e

from ansible_collections.arista.avd.plugins.filter.convert_dicts import convert_dicts
from ansible_collections.arista.avd.plugins.plugin_utils.eos_designs_shared_utils import SharedUtils
from ansible_collections.arista.avd.plugins.plugin_utils.errors import AristaAvdMissingVariableError
from ansible_collections.arista.avd.plugins.plugin_utils.merge import merge
Expand Down
3 changes: 1 addition & 2 deletions python-avd/pyavd/j2filters/convert_dicts.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Copyright (c) 2024 Arista Networks, Inc.
# Use of this source code is governed by the Apache License 2.0
# that can be found in the LICENSE file.
from __future__ import absolute_import, division, print_function
from __future__ import annotations

__metaclass__ = type
import os


Expand Down

0 comments on commit 8d442ed

Please sign in to comment.