diff --git a/daemons/ganeti-confd b/daemons/ganeti-confd index 9deb1232f2e19e4a24caf379cc5c062fae666ad7..34d08f33a0c22b3265ec076f8d8bb992e36670f4 100755 --- a/daemons/ganeti-confd +++ b/daemons/ganeti-confd @@ -123,7 +123,7 @@ class ConfdInotifyEventHandler(pyinotify.ProcessEvent): if self.watch_handle is None: result = self.watch_manager.add_watch(self.file, self.mask) if not self.file in result or result[self.file] <= 0: - raise errors.ConfdFatalError("Could not add inotify watcher") + raise errors.InotifyError("Could not add inotify watcher") else: self.watch_handle = result[self.file] @@ -213,7 +213,10 @@ class ConfdConfigurationReloader(object): """ if not notifier_enabled: - self.inotify_handler.enable() + try: + self.inotify_handler.enable() + except errors.InotifyError: + raise errors.ConfdFatalError(err) try: reloaded = self.reader.Reload()