##// END OF EJS Templates
vcs: Raise an error in case of unsupported protocol.
Martin Bornhold -
r589:edece7f1 default
parent child Browse files
Show More
@@ -199,10 +199,14 b' def prepare_callback_daemon(extras, prot'
199 callback_daemon = DummyHooksCallbackDaemon()
199 callback_daemon = DummyHooksCallbackDaemon()
200 extras['hooks_module'] = callback_daemon.hooks_module
200 extras['hooks_module'] = callback_daemon.hooks_module
201 else:
201 else:
202 callback_daemon = (
202 if protocol == 'pyro4':
203 Pyro4HooksCallbackDaemon()
203 callback_daemon = Pyro4HooksCallbackDaemon()
204 if protocol == 'pyro4'
204 elif protocol == 'http':
205 else HttpHooksCallbackDaemon())
205 callback_daemon = HttpHooksCallbackDaemon()
206 else:
207 log.error('Unsupported callback daemon protocol "%s"', protocol)
208 raise Exception('Unsupported callback daemon protocol.')
209
206 extras['hooks_uri'] = callback_daemon.hooks_uri
210 extras['hooks_uri'] = callback_daemon.hooks_uri
207 extras['hooks_protocol'] = protocol
211 extras['hooks_protocol'] = protocol
208
212
General Comments 0
You need to be logged in to leave comments. Login now