Use explicit check for rpc.register_opts

This commit is contained in:
Anthony Young 2012-04-30 14:07:15 -07:00
parent 901e565503
commit ca78183171
1 changed files with 1 additions and 3 deletions

View File

@ -69,10 +69,8 @@ FLAGS.register_cli_opts(opts)
# As of nova commit 0b11668e64450039dc071a4a123abd02206f865f we must # As of nova commit 0b11668e64450039dc071a4a123abd02206f865f we must
# manually register the rpc library # manually register the rpc library
try: if hasattr(rpc, 'register_opts'):
rpc.register_opts(FLAGS) rpc.register_opts(FLAGS)
except:
pass
class NovaWebSocketProxy(wsproxy.WebSocketProxy): class NovaWebSocketProxy(wsproxy.WebSocketProxy):