From f0bbda93a5d83e2781def919f267594187d3ebef Mon Sep 17 00:00:00 2001 From: pipiwowa <189855476+ppiwowa-csco@users.noreply.github.com> Date: Fri, 10 Jan 2025 15:34:39 +0100 Subject: [PATCH] Get template should pass parameters as a key value --- catalystwan/api/template_api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()