[Bugs] [Bug 1649054] glustereventsd does not start on Ubuntu 16.04 LTS

bugzilla at redhat.com bugzilla at redhat.com
Wed Dec 5 09:31:22 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1649054



--- Comment #7 from Mrten <bugzilla at ii.nl> ---
better patch:

--- utils.py.old    2018-12-04 18:19:18.846463181 +0100
+++ utils.py    2018-12-05 10:30:03.306848363 +0100
@@ -26,13 +26,25 @@
 from hashlib import sha256
 from calendar import timegm

-from .eventsapiconf import (LOG_FILE,
-                           WEBHOOKS_FILE,
-                           DEFAULT_CONFIG_FILE,
-                           CUSTOM_CONFIG_FILE,
-                           UUID_FILE,
-                           CERTS_DIR)
-from . import eventtypes
+try:
+    from .eventsapiconf import (LOG_FILE,
+                                WEBHOOKS_FILE,
+                                DEFAULT_CONFIG_FILE,
+                                CUSTOM_CONFIG_FILE,
+                                UUID_FILE,
+                                CERTS_DIR)
+except ImportError:
+    from eventsapiconf import (LOG_FILE,
+                               WEBHOOKS_FILE,
+                               DEFAULT_CONFIG_FILE,
+                               CUSTOM_CONFIG_FILE,
+                               UUID_FILE,
+                               CERTS_DIR)
+
+try:
+  from . import eventtypes
+except ImportError:
+  import eventtypes

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Bugs mailing list