Skip to content

Commit

Permalink
Get template should pass parameters as a key value
Browse files Browse the repository at this point in the history
  • Loading branch information
ppiwowa-csco committed Jan 10, 2025
1 parent ef1b0c0 commit e2da1de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catalystwan/api/template_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ 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

0 comments on commit e2da1de

Please sign in to comment.