Cleaning up imports in nova.api

Change-Id: I2779c1fbff7344370ce17c6562086e29329b6e65
This commit is contained in:
Brian Waldon 2011-12-21 13:21:36 -05:00
parent ab2b1e15b6
commit 5605b93a09
19 changed files with 24 additions and 40 deletions

View File

@ -21,7 +21,6 @@ Common Auth Middleware.
import webob.dec
import webob.exc
from nova import context
from nova import flags
from nova import wsgi

View File

@ -37,12 +37,11 @@ import urllib
import routes
import webob
import nova.api.openstack.wsgi
from nova import context
from nova import exception
from nova import flags
from nova import utils
from nova import wsgi
import nova.api.openstack.wsgi
# Global storage for registering modules.

View File

@ -25,16 +25,16 @@ import webob
import webob.dec
import webob.exc
from nova.api.ec2 import apirequest
from nova.api.ec2 import ec2utils
from nova.api.ec2 import faults
from nova.auth import manager
from nova import context
from nova import exception
from nova import flags
from nova import log as logging
from nova import utils
from nova import wsgi
from nova.api.ec2 import apirequest
from nova.api.ec2 import ec2utils
from nova.api.ec2 import faults
from nova.auth import manager
FLAGS = flags.FLAGS
LOG = logging.getLogger("nova.api")

View File

@ -21,19 +21,20 @@ Admin API controller, exposed through http via the api worker.
"""
import base64
import netaddr
import urllib
import netaddr
from nova.api.ec2 import ec2utils
from nova.auth import manager
from nova import compute
from nova.compute import instance_types
from nova.compute import vm_states
from nova import db
from nova import exception
from nova import flags
from nova import log as logging
from nova import utils
from nova.api.ec2 import ec2utils
from nova.auth import manager
from nova.compute import vm_states
FLAGS = flags.FLAGS

View File

@ -24,11 +24,11 @@ import datetime
# TODO(termie): replace minidom with etree
from xml.dom import minidom
from nova.api.ec2.admin import AdminController
from nova.api.ec2 import ec2utils
from nova import exception
from nova import flags
from nova import log as logging
from nova import exception
from nova.api.ec2 import ec2utils
from nova.api.ec2.admin import AdminController
LOG = logging.getLogger("nova.api.request")
FLAGS = flags.FLAGS

View File

@ -30,22 +30,21 @@ import tempfile
import time
import urllib
from nova.api.ec2 import ec2utils
from nova.compute import instance_types
from nova import block_device
from nova import compute
from nova.compute import vm_states
from nova import crypto
from nova import db
from nova import exception
from nova import flags
from nova.image import s3
from nova import log as logging
from nova import network
from nova import rpc
from nova import utils
from nova import volume
from nova.api.ec2 import ec2utils
from nova.compute import instance_types
from nova.compute import vm_states
from nova.image import s3
FLAGS = flags.FLAGS

View File

@ -20,8 +20,8 @@ import re
from nova import exception
from nova import flags
from nova import log as logging
from nova import ipv6
from nova import log as logging
FLAGS = flags.FLAGS

View File

@ -15,9 +15,9 @@
import webob.dec
import webob.exc
from nova import utils
from nova import context
from nova import flags
from nova import utils
FLAGS = flags.FLAGS

View File

@ -23,6 +23,7 @@ import base64
import webob.dec
import webob.exc
from nova.api.ec2 import ec2utils
from nova import block_device
from nova import compute
from nova import context
@ -33,7 +34,6 @@ from nova import log as logging
from nova import network
from nova import volume
from nova import wsgi
from nova.api.ec2 import ec2utils
LOG = logging.getLogger('nova.api.metadata')

View File

@ -15,14 +15,12 @@
# License for the specific language governing permissions and limitations
# under the License.
from lxml import etree
import webob
from nova.api.openstack.v2.views import flavors as flavors_view
from nova.api.openstack import wsgi
from nova.api.openstack import xmlutil
from nova.compute import instance_types
from nova import db
from nova import exception

View File

@ -22,7 +22,6 @@ from nova.api.openstack import wsgi
from nova import exception
from nova import flags
from nova import image
from nova import utils
FLAGS = flags.FLAGS

View File

@ -13,9 +13,6 @@
# License for the specific language governing permissions and limitations
# under the License.
import os.path
from lxml import etree
import webob.exc
from nova.api.openstack import common

View File

@ -15,7 +15,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from lxml import etree
from webob import exc
import nova

View File

@ -24,13 +24,10 @@ import json
import math
import re
import time
import urllib
from lxml import etree
from webob.dec import wsgify
import webob.exc
from nova.api.openstack import common
from nova.api.openstack.v2.views import limits as limits_views
from nova.api.openstack import wsgi
from nova.api.openstack import xmlutil

View File

@ -15,8 +15,6 @@
# License for the specific language governing permissions and limitations
# under the License.
import os.path
from nova.api.openstack import common

View File

@ -17,7 +17,6 @@
import datetime
from nova.api.openstack import common
from nova import utils

View File

@ -14,7 +14,6 @@
# under the License.
import json
import urlparse
from nova.api.openstack import common
from nova.api.openstack.v2 import servers
@ -22,7 +21,6 @@ from nova.api.openstack import xmlutil
from nova.api.openstack import wsgi
from nova.compute import api as compute
from nova import crypto
from nova import db
from nova import exception
from nova import flags
from nova import log as logging

View File

@ -15,11 +15,12 @@
# License for the specific language governing permissions and limitations
# under the License.
from lxml import etree
import webob
from xml.dom import minidom
from xml.parsers import expat
from lxml import etree
import webob
from nova import exception
from nova import log as logging
from nova import utils

View File

@ -19,8 +19,8 @@ import os.path
from lxml import etree
from nova import utils
from nova.api.openstack import wsgi
from nova import utils
XMLNS_V10 = 'http://docs.rackspacecloud.com/servers/api/v1.0'