Revision e22af31d daemons/ganeti-confd
b/daemons/ganeti-confd | ||
---|---|---|
147 | 147 |
# new watch. This is not a race condition, though, since we're anyway |
148 | 148 |
# going to realod the file after setting up the new watch. |
149 | 149 |
self.callback(False) |
150 |
except errors.ConfdFatalError, err: |
|
151 |
logging.critical("Critical error, shutting down: %s", err) |
|
152 |
sys.exit(constants.EXIT_FAILURE) |
|
153 | 150 |
except: |
154 | 151 |
# we need to catch any exception here, log it, but proceed, because even |
155 | 152 |
# if we failed handling a single request, we still want the confd to |
... | ... | |
165 | 162 |
|
166 | 163 |
try: |
167 | 164 |
self.callback(True) |
168 |
except errors.ConfdFatalError, err: |
|
169 |
logging.critical("Critical error, shutting down: %s", err) |
|
170 |
sys.exit(constants.EXIT_FAILURE) |
|
171 | 165 |
except: |
172 | 166 |
# we need to catch any exception here, log it, but proceed, because even |
173 | 167 |
# if we failed handling a single request, we still want the confd to |
Also available in: Unified diff