Skip to content

Commit

Permalink
Fixed regex for outlets determination
Browse files Browse the repository at this point in the history
  • Loading branch information
alexquali authored and alexquali committed Jul 3, 2024
1 parent 353fb92 commit 77d5f82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cloudshell/raritan/command_actions/system_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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<outlet_id>\d+):\sPower state:\s+(?P<outlet_state>\w+)",
r"Outlet\s+(?P<outlet_id>\d+).*:\sPower state:\s+(?P<outlet_state>\w+)",
output,
):
outlets_info.update({outlet_id: outlet_state})
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1

0 comments on commit 77d5f82

Please sign in to comment.