Projects
Eulaceura:Mainline:GA
fence-agents
_service:obs_scm:fence_bladecenter-fence_rarita...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:fence_bladecenter-fence_raritan_px3-use-r-on-regex-s.patch of Package fence-agents
From 989a079547b5c62d4e98ac0609136007e229c09e Mon Sep 17 00:00:00 2001 From: Oyvind Albrigtsen <oalbrigt@redhat.com> Date: Fri, 20 Sep 2024 09:15:51 +0200 Subject: [PATCH 2/3] fence_bladecenter/fence_raritan_px3: use r"" on regex string to avoid SyntaxWarning --- agents/bladecenter/fence_bladecenter.py | 2 +- agents/raritan_px3/fence_raritan_px3.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agents/bladecenter/fence_bladecenter.py b/agents/bladecenter/fence_bladecenter.py index 2f2c65fc..a1e53066 100644 --- a/agents/bladecenter/fence_bladecenter.py +++ b/agents/bladecenter/fence_bladecenter.py @@ -96,7 +96,7 @@ and uses the command line interface to power on and off blades." ## ## Operate the fencing device ###### - conn = fence_login(options, "(username\s*:\s*)") + conn = fence_login(options, r"(username\s*:\s*)") result = fence_action(conn, options, set_power_status, get_power_status, get_blades_list) fence_logout(conn, "exit") sys.exit(result) diff --git a/agents/raritan_px3/fence_raritan_px3.py b/agents/raritan_px3/fence_raritan_px3.py index 9b8ce1bf..b1c7436b 100644 --- a/agents/raritan_px3/fence_raritan_px3.py +++ b/agents/raritan_px3/fence_raritan_px3.py @@ -157,7 +157,7 @@ firmware versions. It's recommended to update to at least version 3.6.x" docs["vendorurl"] = "http://www.raritan.com/" show_docs(options, docs) - conn = fence_login(options, re_login_string="Username.*") + conn = fence_login(options, re_login_string=r"Username.*") px3_get_outlet_list(conn, options) try: -- 2.33.1.windows.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2