提交 42a0fc39 编写于 作者: E Eric Blake

hooks: fix regression in previous patch

* src/util/hooks.c (virHookCheck): Missing hooks should just be
debug, not warn.
上级 24da1095
......@@ -110,9 +110,12 @@ virHookCheck(int no, const char *driver) {
return -1;
}
if (!virFileIsExecutable(path)) {
if (!virFileExists(path)) {
ret = 0;
VIR_WARN("Missing or non-executable hook script %s", path);
VIR_DEBUG("No hook script %s", path);
} else if (!virFileIsExecutable(path)) {
ret = 0;
VIR_WARN("Non-executable hook script %s", path);
} else {
ret = 1;
VIR_DEBUG("Found hook script %s", path);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册