Merge pull request #158 from cloudbuilders/fix_rpc_backend

Fix rpc initialization issue
This commit is contained in:
Joel Martin 2012-04-30 15:16:24 -07:00
commit 4910600b71
1 changed files with 5 additions and 0 deletions

View File

@ -67,6 +67,11 @@ opts = [
FLAGS = flags.FLAGS
FLAGS.register_cli_opts(opts)
# As of nova commit 0b11668e64450039dc071a4a123abd02206f865f we must
# manually register the rpc library
if hasattr(rpc, 'register_opts'):
rpc.register_opts(FLAGS)
class NovaWebSocketProxy(wsproxy.WebSocketProxy):
def __init__(self, *args, **kwargs):