mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
hooks: fix regression in previous patch
* src/util/hooks.c (virHookCheck): Missing hooks should just be debug, not warn.
This commit is contained in:
parent
24da109573
commit
42a0fc39c1
@ -110,9 +110,12 @@ virHookCheck(int no, const char *driver) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!virFileIsExecutable(path)) {
|
if (!virFileExists(path)) {
|
||||||
ret = 0;
|
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 {
|
} else {
|
||||||
ret = 1;
|
ret = 1;
|
||||||
VIR_DEBUG("Found hook script %s", path);
|
VIR_DEBUG("Found hook script %s", path);
|
||||||
|
Loading…
Reference in New Issue
Block a user