From 16606493274114b6c745fa40f74686332f774b80 Mon Sep 17 00:00:00 2001 From: Szymon Basan Date: Fri, 4 Oct 2024 09:17:41 +0200 Subject: [PATCH] fix: device ip arguement for listing partitions --- ENDPOINTS.md | 2 +- catalystwan/api/versions_utils.py | 9 +++++---- pyproject.toml | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ENDPOINTS.md b/ENDPOINTS.md index 843eafff..8c24aa27 100644 --- a/ENDPOINTS.md +++ b/ENDPOINTS.md @@ -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 diff --git a/catalystwan/api/versions_utils.py b/catalystwan/api/versions_utils.py index eeb57099..6e920640 100644 --- a/catalystwan/api/versions_utils.py +++ b/catalystwan/api/versions_utils.py @@ -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})" ) @@ -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( @@ -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 ] diff --git a/pyproject.toml b/pyproject.toml index 8074fa70..b7c66c58 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] readme = "README.md"