oslo.rootwrap/oslo_rootwrap
Ihar Hrachyshka e0bf7767da daemon: avoid raising UnboundLocalError to callers
If something in the daemon_start() function fails before server variable
is initialized, we get the following exception:

UnboundLocalError: local variable 'server' referenced before assignment

We should not attempt to close connections or kill all threads for a
daemon that failed to start (or that hasn't even reached the moment of
the start).

Closes-Bug: #1465350
Change-Id: I7769e40c13e3bd740d5b8a949a61d1bcc127f137
2015-06-23 13:21:12 +02:00
..
tests daemon: avoid raising UnboundLocalError to callers 2015-06-23 13:21:12 +02:00
__init__.py Move files out of the namespace package 2014-12-18 16:08:01 -05:00
client.py Remove env changing support in daemon mode 2015-03-04 14:50:25 +03:00
cmd.py Speed up non-daemon rootwrap command line invocation 2015-04-06 09:59:00 -04:00
daemon.py daemon: avoid raising UnboundLocalError to callers 2015-06-23 13:21:12 +02:00
filters.py Avoid calling sudo just to change users 2015-03-31 23:06:06 +11:00
jsonrpc.py Move files out of the namespace package 2014-12-18 16:08:01 -05:00
wrapper.py Avoid calling sudo just to change users 2015-03-31 23:06:06 +11:00