From 1b246a087a99cf012b57dad14bbfbff979929449 Mon Sep 17 00:00:00 2001 From: sbasan Date: Tue, 19 Mar 2024 14:32:00 +0100 Subject: [PATCH 1/2] clear cookies on login, bump minor --- catalystwan/session.py | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/catalystwan/session.py b/catalystwan/session.py index e902c50f..f676f1df 100644 --- a/catalystwan/session.py +++ b/catalystwan/session.py @@ -225,6 +225,7 @@ def login(self) -> ManagerSession: ManagerSession: (self) """ + self.cookies.clear_session_cookies() self.auth = vManageAuth(self.base_url, self.username, self.password, verify=False) self.auth.logger = self.logger diff --git a/pyproject.toml b/pyproject.toml index b5b39e7f..8f7b451b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "catalystwan" -version = "0.31.0" +version = "0.31.1" description = "Cisco Catalyst WAN SDK for Python" authors = ["kagorski "] readme = "README.md" From fa6905c11606b5d053093cdb31ba30580045f41f Mon Sep 17 00:00:00 2001 From: acichon Date: Wed, 20 Mar 2024 15:42:13 +0100 Subject: [PATCH 2/2] fix validation value --- catalystwan/endpoints/configuration_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalystwan/endpoints/configuration_settings.py b/catalystwan/endpoints/configuration_settings.py index 8e23c5c9..cd9fdf31 100644 --- a/catalystwan/endpoints/configuration_settings.py +++ b/catalystwan/endpoints/configuration_settings.py @@ -238,7 +238,7 @@ def check_download_timeout(cls, download_timeout_str: str): @validator("activate_timeout") def check_activate_timeout(cls, activate_timeout_str: str): activate_timeout = int(activate_timeout_str) - if activate_timeout < 60 or activate_timeout > 180: + if activate_timeout < 30 or activate_timeout > 180: raise ValueError("activate timeout should be in range 30-180") return activate_timeout_str