代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/fence-agents 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。