summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/nova-api1
-rw-r--r--nova/apiservice.py6
2 files changed, 3 insertions, 4 deletions
diff --git a/bin/nova-api b/bin/nova-api
index d03be85e3..96c784624 100755
--- a/bin/nova-api
+++ b/bin/nova-api
@@ -37,7 +37,6 @@ gettext.install('nova', unicode=1)
from nova import flags
from nova import log as logging
from nova import apiservice
-from nova import utils
from nova import wsgi
FLAGS = flags.FLAGS
diff --git a/nova/apiservice.py b/nova/apiservice.py
index 693bc9a63..6340e9b9b 100644
--- a/nova/apiservice.py
+++ b/nova/apiservice.py
@@ -16,9 +16,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-"""
-Wrapper for API service, makes it look more like the non-WSGI services
-"""
+"""Wrapper for API service, makes it look more like the non-WSGI services"""
from nova import flags
from nova import log as logging
@@ -28,6 +26,7 @@ from nova import wsgi
LOG = logging.getLogger('nova.api')
+
FLAGS = flags.FLAGS
flags.DEFINE_string('ec2_listen', "0.0.0.0",
'IP address for EC2 API to listen')
@@ -36,6 +35,7 @@ flags.DEFINE_string('osapi_listen', "0.0.0.0",
'IP address for OpenStack API to listen')
flags.DEFINE_integer('osapi_listen_port', 8774, 'port for os api to listen')
+
API_ENDPOINTS = ['ec2', 'osapi']