From 77d5f82ec827ae61e6df82b3c13abb8f95714058 Mon Sep 17 00:00:00 2001 From: alexquali Date: Wed, 3 Jul 2024 21:10:14 +0200 Subject: [PATCH] Fixed regex for outlets determination --- cloudshell/raritan/command_actions/system_actions.py | 2 +- version.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudshell/raritan/command_actions/system_actions.py b/cloudshell/raritan/command_actions/system_actions.py index a20b2f0..69f103b 100644 --- a/cloudshell/raritan/command_actions/system_actions.py +++ b/cloudshell/raritan/command_actions/system_actions.py @@ -53,7 +53,7 @@ def get_outlets(self) -> dict[str, str]: ).execute_command() for outlet_id, outlet_state in re.findall( - r"Outlet\s+(?P\d+):\sPower state:\s+(?P\w+)", + r"Outlet\s+(?P\d+).*:\sPower state:\s+(?P\w+)", output, ): outlets_info.update({outlet_id: outlet_state}) diff --git a/version.txt b/version.txt index 3eefcb9..7dea76e 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.0.0 +1.0.1