Skip to content

Commit 291485a

Browse files
ppiwowa-cscosbasan
andauthored
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 <sbasan@cisco.com>
1 parent ef1b0c0 commit 291485a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

ENDPOINTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
**THIS FILE WAS AUTO-GENERATED DO NOT EDIT**
22

3-
Generated for: catalystwan-0.40.0.dev7
3+
Generated for: catalystwan-0.40.0.dev9
44

55
All URIs are relative to */dataservice*
66
HTTP request | Supported Versions | Method | Payload Type | Return Type | Tenancy Mode

catalystwan/api/template_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ def _get_device_templates(
115115
self, feature: DeviceTemplateFeature = DeviceTemplateFeature.ALL
116116
) -> DataSequence[DeviceTemplateInformation]:
117117
"""In a multitenant vManage system, this API is only available in the Provider view."""
118-
return self.session.endpoints.configuration_template_master.get_device_template_list(params=feature.value)
118+
return self.session.endpoints.configuration_template_master.get_device_template_list(
119+
params={"feature": feature.value}
120+
)
119121

120122
def attach(self, name: str, device: Device, timeout_seconds: int = 300, **kwargs):
121123
template_info = self.get(DeviceTemplate).filter(name=name).single_or_default()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "catalystwan"
3-
version = "0.40.0dev8"
3+
version = "0.40.0dev9"
44
description = "Cisco Catalyst WAN SDK for Python"
55
authors = ["kagorski <kagorski@cisco.com>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)