Fix invalid import order
Made corrections in import order as per OpenStack import standards [1]. [1] http://docs.openstack.org/developer/hacking/#import-order-template TrivialFix Change-Id: Ieb63c7fc5becc68db8d68b3e6847321e77ceeed3
This commit is contained in:
parent
4c4591f2cd
commit
046f34290d
@ -13,12 +13,12 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from six.moves import StringIO
|
||||
import sys
|
||||
|
||||
import fixtures
|
||||
import mock
|
||||
from oslo_utils import uuidutils
|
||||
from six.moves import StringIO
|
||||
|
||||
from nova.cmd import manage
|
||||
from nova import conf
|
||||
|
@ -15,7 +15,6 @@
|
||||
|
||||
import base64
|
||||
import datetime
|
||||
import mock
|
||||
|
||||
from castellan.common.exception import KeyManagerError
|
||||
import cryptography.exceptions as crypto_exceptions
|
||||
@ -24,6 +23,7 @@ from cryptography.hazmat.primitives.asymmetric import dsa
|
||||
from cryptography.hazmat.primitives.asymmetric import ec
|
||||
from cryptography.hazmat.primitives.asymmetric import padding
|
||||
from cryptography.hazmat.primitives.asymmetric import rsa
|
||||
import mock
|
||||
from oslo_utils import timeutils
|
||||
|
||||
from nova import exception
|
||||
|
@ -10,9 +10,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import testtools
|
||||
|
||||
from oslo_utils import uuidutils
|
||||
import testtools
|
||||
|
||||
from nova.tests import uuidsentinel
|
||||
|
||||
|
@ -13,13 +13,12 @@
|
||||
# under the License.
|
||||
|
||||
from collections import deque
|
||||
|
||||
from lxml import etree
|
||||
import mock
|
||||
from oslo_utils import units
|
||||
|
||||
import six
|
||||
|
||||
from oslo_utils import encodeutils
|
||||
from oslo_utils import units
|
||||
import six
|
||||
|
||||
from nova.compute import power_state
|
||||
from nova import objects
|
||||
|
@ -14,7 +14,6 @@
|
||||
# under the License.
|
||||
|
||||
import mock
|
||||
|
||||
from os_brick.initiator import connector
|
||||
|
||||
from nova.tests.unit.virt.libvirt.volume import test_volume
|
||||
|
@ -14,7 +14,6 @@
|
||||
# under the License.
|
||||
|
||||
import mock
|
||||
|
||||
from os_brick.initiator import connector
|
||||
|
||||
from nova.tests.unit.virt.libvirt.volume import test_volume
|
||||
|
@ -14,9 +14,9 @@
|
||||
# under the License.
|
||||
"""Unit tests for the Quobyte volume driver module."""
|
||||
|
||||
import mock
|
||||
import os
|
||||
|
||||
import mock
|
||||
from oslo_concurrency import processutils
|
||||
from oslo_utils import fileutils
|
||||
|
||||
|
@ -14,10 +14,11 @@
|
||||
# under the License.
|
||||
|
||||
import imp
|
||||
import mock
|
||||
import os
|
||||
import sys
|
||||
|
||||
import mock
|
||||
|
||||
from nova import test
|
||||
from nova.virt.xenapi.client import session
|
||||
|
||||
|
@ -13,8 +13,6 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from eventlet import greenthread
|
||||
import mock
|
||||
import uuid
|
||||
|
||||
try:
|
||||
@ -22,6 +20,9 @@ try:
|
||||
except ImportError:
|
||||
import six.moves.xmlrpc_client as xmlrpclib
|
||||
|
||||
from eventlet import greenthread
|
||||
import mock
|
||||
|
||||
from nova.compute import power_state
|
||||
from nova.compute import task_states
|
||||
from nova import context
|
||||
|
@ -12,8 +12,9 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from eventlet import tpool
|
||||
import os
|
||||
|
||||
from eventlet import tpool
|
||||
from oslo_log import log as logging
|
||||
from oslo_utils import importutils
|
||||
import six
|
||||
|
@ -16,9 +16,10 @@
|
||||
|
||||
import abc
|
||||
|
||||
import nova.conf
|
||||
from os_win import utilsfactory
|
||||
|
||||
import nova.conf
|
||||
|
||||
CONF = nova.conf.CONF
|
||||
|
||||
|
||||
|
@ -37,12 +37,13 @@ possible_topdir = os.getcwd()
|
||||
if os.path.exists(os.path.join(possible_topdir, "nova", "__init__.py")):
|
||||
sys.path.insert(0, possible_topdir)
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_utils import uuidutils
|
||||
|
||||
from nova import config
|
||||
from nova.virt import virtapi
|
||||
from nova.virt.xenapi import driver as xenapi_driver
|
||||
from nova.virt.xenapi import vm_utils
|
||||
from oslo_config import cfg
|
||||
from oslo_utils import uuidutils
|
||||
|
||||
cli_opts = [
|
||||
cfg.BoolOpt('dry-run',
|
||||
|
@ -21,6 +21,7 @@ import os
|
||||
import sys
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_utils import timeutils
|
||||
import XenAPI
|
||||
|
||||
possible_topdir = os.getcwd()
|
||||
@ -32,7 +33,6 @@ from nova import context
|
||||
import nova.conf
|
||||
from nova import db
|
||||
from nova import exception
|
||||
from oslo_utils import timeutils
|
||||
from nova.virt import virtapi
|
||||
from nova.virt.xenapi import driver as xenapi_driver
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user