summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEric Day <eday@oddments.org>2010-08-17 16:43:37 -0700
committerEric Day <eday@oddments.org>2010-08-17 16:43:37 -0700
commit1e403e56dc1147ce3feea1b8931948bc35f23a44 (patch)
treee26a97bbc2fbf4fa03d23867768d6607d55361b4 /bin
parent018ce9abbfb7047eff1e99379fba098a365e89eb (diff)
downloadnova-1e403e56dc1147ce3feea1b8931948bc35f23a44.tar.gz
nova-1e403e56dc1147ce3feea1b8931948bc35f23a44.tar.xz
nova-1e403e56dc1147ce3feea1b8931948bc35f23a44.zip
In an effort to keep new and old API code separate, I've created a nova.api to put all new API code under. This means nova.endpoint only contains the old Tornado implementation. I also cleaned up a few pep8 and other style nits in the new API code.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-api-new (renamed from bin/nova-rsapi)8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/nova-rsapi b/bin/nova-api-new
index e2722422e..fda42339c 100755
--- a/bin/nova-rsapi
+++ b/bin/nova-api-new
@@ -18,17 +18,17 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""
- Daemon for the Rackspace API endpoint.
+Nova API daemon.
"""
+from nova import api
from nova import flags
from nova import utils
from nova import wsgi
-from nova.endpoint import newapi
FLAGS = flags.FLAGS
-flags.DEFINE_integer('cc_port', 8773, 'cloud controller port')
+flags.DEFINE_integer('api_port', 8773, 'API port')
if __name__ == '__main__':
utils.default_flagfile()
- wsgi.run_server(newapi.APIVersionRouter(), FLAGS.cc_port)
+ wsgi.run_server(api.API(), FLAGS.api_port)