Revision c6259dbc
b/daemons/ganeti-confd | ||
---|---|---|
115 | 115 |
pyinotify.EventsCodes.IN_MODIFY |
116 | 116 |
self.file = file |
117 | 117 |
self.watch_handle = None |
118 |
self.enable() |
|
119 | 118 |
|
120 | 119 |
def enable(self): |
121 | 120 |
"""Watch the given file |
... | ... | |
204 | 203 |
self.processor = processor |
205 | 204 |
self.mainloop = mainloop |
206 | 205 |
|
207 |
self.polling = False
|
|
206 |
self.polling = True
|
|
208 | 207 |
self.last_notification = 0 |
209 | 208 |
|
210 | 209 |
# Asyncronous inotify handler for config changes |
Also available in: Unified diff