Skip to content

Commit

Permalink
dev: get template should pass parameters as key value (#21)
Browse files Browse the repository at this point in the history
* Get template should pass parameters as a key value

* release prep

---------

Co-authored-by: Szymon Basan <[email protected]>
  • Loading branch information
ppiwowa-csco and sbasan authored Jan 13, 2025
1 parent ef1b0c0 commit 291485a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ENDPOINTS.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 3 additions & 1 deletion catalystwan/api/template_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 291485a

Please sign in to comment.