From 8f0c62d0916d5ea2876bf7404773480a2b6f63a5 Mon Sep 17 00:00:00 2001 From: Kody Vicknair <70912031+MrVicknair@users.noreply.github.com> Date: Wed, 23 Oct 2024 14:49:27 -0500 Subject: [PATCH] Update utilities.py minor correction to the way arguments get passed to the pkg_resources.path() function --- netmiko/utilities.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/netmiko/utilities.py b/netmiko/utilities.py index a7196fff2..1954e0e96 100644 --- a/netmiko/utilities.py +++ b/netmiko/utilities.py @@ -319,9 +319,7 @@ def get_template_dir(_skip_ntc_package: bool = False) -> str: if _skip_ntc_package: raise ModuleNotFoundError() else: - with pkg_resources.path( - package="ntc_templates", resource="parse.py" - ) as posix_path: + with pkg_resources.path("ntc_templates", "parse.py") as posix_path: # Example: /opt/venv/netmiko/lib/python3.9/site-packages/ntc_templates/templates template_dir = str(posix_path.parent.joinpath("templates")) # This is for Netmiko automated testing