From 291485a8c21c4f2de237c18cf0f861b9f42a9598 Mon Sep 17 00:00:00 2001 From: ppiwowa-csco <189855476+ppiwowa-csco@users.noreply.github.com> Date: Mon, 13 Jan 2025 16:37:04 +0100 Subject: [PATCH] dev: get template should pass parameters as key value (#21) * Get template should pass parameters as a key value * release prep --------- Co-authored-by: Szymon Basan --- ENDPOINTS.md | 2 +- catalystwan/api/template_api.py | 4 +++- pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ENDPOINTS.md b/ENDPOINTS.md index 6d7fb811..a578ec1d 100644 --- a/ENDPOINTS.md +++ b/ENDPOINTS.md @@ -1,6 +1,6 @@ **THIS FILE WAS AUTO-GENERATED DO NOT EDIT** -Generated for: catalystwan-0.40.0.dev7 +Generated for: catalystwan-0.40.0.dev9 All URIs are relative to */dataservice* HTTP request | Supported Versions | Method | Payload Type | Return Type | Tenancy Mode diff --git a/catalystwan/api/template_api.py b/catalystwan/api/template_api.py index b80b52b4..58cf50e5 100644 --- a/catalystwan/api/template_api.py +++ b/catalystwan/api/template_api.py @@ -115,7 +115,9 @@ def _get_device_templates( self, feature: DeviceTemplateFeature = DeviceTemplateFeature.ALL ) -> DataSequence[DeviceTemplateInformation]: """In a multitenant vManage system, this API is only available in the Provider view.""" - return self.session.endpoints.configuration_template_master.get_device_template_list(params=feature.value) + return self.session.endpoints.configuration_template_master.get_device_template_list( + params={"feature": feature.value} + ) def attach(self, name: str, device: Device, timeout_seconds: int = 300, **kwargs): template_info = self.get(DeviceTemplate).filter(name=name).single_or_default() diff --git a/pyproject.toml b/pyproject.toml index 65992756..01b9a82d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "catalystwan" -version = "0.40.0dev8" +version = "0.40.0dev9" description = "Cisco Catalyst WAN SDK for Python" authors = ["kagorski "] readme = "README.md"