summaryrefslogtreecommitdiffstats
path: root/events
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2018-07-16 17:03:17 +0300
committerAmar Tumballi <amarts@redhat.com>2018-07-22 14:40:16 +0000
commit621138ce763eda8270d0a4f6d7209fd50ada8787 (patch)
tree7299759993f6e9f7f34dad95fc8d8cd6ffc1b2fd /events
parentc0e76377d0fc47aa66f35ea70a4793731ebbd40c (diff)
All: run codespell on the code and fix issues.
Please review, it's not always just the comments that were fixed. I've had to revert of course all calls to creat() that were changed to create() ... Only compile-tested! Change-Id: I7d02e82d9766e272a7fd9cc68e51901d69e5aab5 updates: bz#1193929 Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'events')
-rw-r--r--events/eventskeygen.py2
-rw-r--r--events/src/utils.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/events/eventskeygen.py b/events/eventskeygen.py
index 3badc05f359..4ccedea8f9e 100644
--- a/events/eventskeygen.py
+++ b/events/eventskeygen.py
@@ -22,7 +22,7 @@ gen_header_type = sys.argv[1]
# When adding new keys add it to the END
keys = (
# user driven events
- #peer and volume managment events
+ #peer and volume management events
"EVENT_PEER_ATTACH",
"EVENT_PEER_DETACH",
"EVENT_VOLUME_CREATE",
diff --git a/events/src/utils.py b/events/src/utils.py
index c1c0bccfe66..0ec7051ec28 100644
--- a/events/src/utils.py
+++ b/events/src/utils.py
@@ -408,8 +408,8 @@ def webhook_monitor(proc_queue, webhooks):
class WebhookThreadPool(object):
def start(self):
- # Seperate process to emit messages to webhooks
- # which maintains one thread per webhook. Seperate
+ # Separate process to emit messages to webhooks
+ # which maintains one thread per webhook. Separate
# process is required since on reload we need to stop
# and start the thread pool. In Python Threads can't be stopped
# so terminate the process and start again. Note: In transit