5af0dfb7fe
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:saltstack/salt?expand=0&rev=189
31 lines
854 B
Diff
31 lines
854 B
Diff
From cde0f9385e1afb9fa97fe2c86cfa77ae3b899aa0 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?=
|
|
<psuarezhernandez@suse.com>
|
|
Date: Fri, 18 Jun 2021 13:09:22 +0100
|
|
Subject: [PATCH] Enhance logging when inotify beacon is missing
|
|
pyinotify (bsc#1186310)
|
|
|
|
---
|
|
salt/beacons/inotify.py | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/salt/beacons/inotify.py b/salt/beacons/inotify.py
|
|
index fa2f73c35f..a6b7548f97 100644
|
|
--- a/salt/beacons/inotify.py
|
|
+++ b/salt/beacons/inotify.py
|
|
@@ -49,7 +49,9 @@ log = logging.getLogger(__name__)
|
|
def __virtual__():
|
|
if HAS_PYINOTIFY:
|
|
return __virtualname__
|
|
- return False
|
|
+ err_msg = "pyinotify library is missing"
|
|
+ log.error("Unable to load inotify beacon: {}".format(err_msg))
|
|
+ return False, err_msg
|
|
|
|
|
|
def _get_mask(mask):
|
|
--
|
|
2.31.1
|
|
|
|
|