Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
fix: device ip arguement for listing partitions (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbasan authored Oct 4, 2024
1 parent 27b9cf3 commit 3ee8431
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 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.35.4
Generated for: catalystwan-0.35.5

All URIs are relative to */dataservice*
HTTP request | Supported Versions | Method | Payload Type | Return Type | Tenancy Mode
Expand Down
9 changes: 5 additions & 4 deletions catalystwan/api/versions_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def get_remote_image(
):
if not (image_details.remote_server_id and image_details.version_id):
raise ValueError(
f"Requested image: '{image_name}' does not include include required fields for this operation:"
f"Requested image: '{image_name}' does not include include required fields for this operation: "
f"image_details.remote_server_id - (current value: {image_details.remote_server_id})"
f"image_details.version_id - (current value: {image_details.version_id})"
)
Expand Down Expand Up @@ -221,9 +221,9 @@ def _validate_devices_required_fields(self, devices: DataSequence[DeviceDetailsR
for device in devices:
if not device.uuid or not device.local_system_ip:
raise ValueError(
f"Provided device '{device.host_name}' doesn't include required fields for this operation:"
f"Provided device '{device.host_name}' doesn't include required fields for this operation: "
f"device.uuid (current value: {device.uuid})"
f"device.device_ip (current value: {device.device_ip})"
f"device.local_system_ip (current value: {device.local_system_ip})"
)

def get_lxcactivate_device_list(
Expand Down Expand Up @@ -409,5 +409,6 @@ def get_device_list(self, devices: DataSequence[DeviceDetailsResponse]) -> List[
self._validate_devices_required_fields(devices)

return [
PartitionDevice(device_id=device.uuid, device_ip=device.device_ip) for device in devices # type: ignore
PartitionDevice(device_id=device.uuid, device_ip=device.local_system_ip) # type: ignore
for device in devices
]
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.35.4"
version = "0.35.5"
description = "Cisco Catalyst WAN SDK for Python"
authors = ["kagorski <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 3ee8431

Please sign in to comment.