1 Star 0 Fork 27

沈仲伟/syscontainer-tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0010-fix-log-of-removeUdevRule.patch 936 Bytes
一键复制 编辑 原始数据 按行查看 历史
vegbir 提交于 2023-12-25 11:10 . hide error when isula info is abnormal
From 56a42267650b11f5eb691cb852f0f7a827ed715a Mon Sep 17 00:00:00 2001
From: yangjiaqi <yangjiaqi16@huawei.com>
Date: Thu, 21 Sep 2023 11:07:21 +0800
Subject: [PATCH] fix log of RemoveUdevRule
---
hooks/syscontainer-hooks/poststop.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hooks/syscontainer-hooks/poststop.go b/hooks/syscontainer-hooks/poststop.go
index 8f03bd7..f422c4e 100644
--- a/hooks/syscontainer-hooks/poststop.go
+++ b/hooks/syscontainer-hooks/poststop.go
@@ -50,7 +50,7 @@ func RemoveUdevRule(state *configs.HookState, hookConfig *hconfig.ContainerHookC
resolvDev := calcPathForDevice(state.Root, dev)
device, err := libdevice.ParseDevice(resolvDev)
if err != nil {
- logrus.Errorf("[device-hook] Add device (%s), parse device failed: %v", resolvDev, err)
+ logrus.Errorf("[device-hook] RemoveUdevRule (%s), parse device failed: %v", resolvDev, err)
continue
}
--
2.30.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhong-wei-shen/syscontainer-tools.git
git@gitee.com:zhong-wei-shen/syscontainer-tools.git
zhong-wei-shen
syscontainer-tools
syscontainer-tools
master

搜索帮助