diff options
| author | Todd Willey <todd@ansolabs.com> | 2010-07-26 23:19:51 -0400 |
|---|---|---|
| committer | Todd Willey <todd@ansolabs.com> | 2010-07-26 23:19:51 -0400 |
| commit | 4044051266d97ffe05fbe75b642759d2e604da4d (patch) | |
| tree | d29038afb528a064fed131d2cb349ca212c6905d /bin | |
| parent | 67d4e16a8c18989e73456f79220b97faa7374d92 (diff) | |
Share my updates to the Rackspace API.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/nova-rsapi | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/bin/nova-rsapi b/bin/nova-rsapi index c2f2c9d70..a529fc669 100755 --- a/bin/nova-rsapi +++ b/bin/nova-rsapi @@ -37,23 +37,12 @@ FLAGS = flags.FLAGS flags.DEFINE_integer('cc_port', 8773, 'cloud controller port') def main(_argv): - user_manager = users.UserManager() - api_instance = rackspace.Api(user_manager) - conn = rpc.Connection.instance() - rpc_consumer = rpc.AdapterConsumer(connection=conn, - topic=FLAGS.cloud_topic, - proxy=api_instance) - -# TODO: fire rpc response listener (without attach to tornado) -# io_inst = ioloop.IOLoop.instance() -# _injected = consumer.attach_to_tornado(io_inst) - + api_instance = rackspace.Api() http_server = simple_server.WSGIServer(('0.0.0.0', FLAGS.cc_port), simple_server.WSGIRequestHandler) http_server.set_app(api_instance.handler) logging.debug('Started HTTP server on port %i' % FLAGS.cc_port) while True: http_server.handle_request() -# io_inst.start() if __name__ == '__main__': utils.default_flagfile() |
