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:
@@ -13,12 +13,12 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from six.moves import StringIO
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import fixtures
|
import fixtures
|
||||||
import mock
|
import mock
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
|
from six.moves import StringIO
|
||||||
|
|
||||||
from nova.cmd import manage
|
from nova.cmd import manage
|
||||||
from nova import conf
|
from nova import conf
|
||||||
|
|||||||
@@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
import base64
|
import base64
|
||||||
import datetime
|
import datetime
|
||||||
import mock
|
|
||||||
|
|
||||||
from castellan.common.exception import KeyManagerError
|
from castellan.common.exception import KeyManagerError
|
||||||
import cryptography.exceptions as crypto_exceptions
|
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 ec
|
||||||
from cryptography.hazmat.primitives.asymmetric import padding
|
from cryptography.hazmat.primitives.asymmetric import padding
|
||||||
from cryptography.hazmat.primitives.asymmetric import rsa
|
from cryptography.hazmat.primitives.asymmetric import rsa
|
||||||
|
import mock
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
|
|||||||
@@ -10,9 +10,8 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import testtools
|
|
||||||
|
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
|
import testtools
|
||||||
|
|
||||||
from nova.tests import uuidsentinel
|
from nova.tests import uuidsentinel
|
||||||
|
|
||||||
|
|||||||
@@ -13,13 +13,12 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from collections import deque
|
from collections import deque
|
||||||
|
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
import mock
|
import mock
|
||||||
from oslo_utils import units
|
|
||||||
|
|
||||||
import six
|
|
||||||
|
|
||||||
from oslo_utils import encodeutils
|
from oslo_utils import encodeutils
|
||||||
|
from oslo_utils import units
|
||||||
|
import six
|
||||||
|
|
||||||
from nova.compute import power_state
|
from nova.compute import power_state
|
||||||
from nova import objects
|
from nova import objects
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
from os_brick.initiator import connector
|
from os_brick.initiator import connector
|
||||||
|
|
||||||
from nova.tests.unit.virt.libvirt.volume import test_volume
|
from nova.tests.unit.virt.libvirt.volume import test_volume
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
from os_brick.initiator import connector
|
from os_brick.initiator import connector
|
||||||
|
|
||||||
from nova.tests.unit.virt.libvirt.volume import test_volume
|
from nova.tests.unit.virt.libvirt.volume import test_volume
|
||||||
|
|||||||
@@ -14,9 +14,9 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
"""Unit tests for the Quobyte volume driver module."""
|
"""Unit tests for the Quobyte volume driver module."""
|
||||||
|
|
||||||
import mock
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
import mock
|
||||||
from oslo_concurrency import processutils
|
from oslo_concurrency import processutils
|
||||||
from oslo_utils import fileutils
|
from oslo_utils import fileutils
|
||||||
|
|
||||||
|
|||||||
@@ -14,10 +14,11 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import imp
|
import imp
|
||||||
import mock
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
import mock
|
||||||
|
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.virt.xenapi.client import session
|
from nova.virt.xenapi.client import session
|
||||||
|
|
||||||
|
|||||||
@@ -13,8 +13,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from eventlet import greenthread
|
|
||||||
import mock
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -22,6 +20,9 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
import six.moves.xmlrpc_client as xmlrpclib
|
import six.moves.xmlrpc_client as xmlrpclib
|
||||||
|
|
||||||
|
from eventlet import greenthread
|
||||||
|
import mock
|
||||||
|
|
||||||
from nova.compute import power_state
|
from nova.compute import power_state
|
||||||
from nova.compute import task_states
|
from nova.compute import task_states
|
||||||
from nova import context
|
from nova import context
|
||||||
|
|||||||
@@ -12,8 +12,9 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from eventlet import tpool
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
from eventlet import tpool
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
from oslo_utils import importutils
|
from oslo_utils import importutils
|
||||||
import six
|
import six
|
||||||
|
|||||||
@@ -16,9 +16,10 @@
|
|||||||
|
|
||||||
import abc
|
import abc
|
||||||
|
|
||||||
import nova.conf
|
|
||||||
from os_win import utilsfactory
|
from os_win import utilsfactory
|
||||||
|
|
||||||
|
import nova.conf
|
||||||
|
|
||||||
CONF = nova.conf.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")):
|
if os.path.exists(os.path.join(possible_topdir, "nova", "__init__.py")):
|
||||||
sys.path.insert(0, possible_topdir)
|
sys.path.insert(0, possible_topdir)
|
||||||
|
|
||||||
|
from oslo_config import cfg
|
||||||
|
from oslo_utils import uuidutils
|
||||||
|
|
||||||
from nova import config
|
from nova import config
|
||||||
from nova.virt import virtapi
|
from nova.virt import virtapi
|
||||||
from nova.virt.xenapi import driver as xenapi_driver
|
from nova.virt.xenapi import driver as xenapi_driver
|
||||||
from nova.virt.xenapi import vm_utils
|
from nova.virt.xenapi import vm_utils
|
||||||
from oslo_config import cfg
|
|
||||||
from oslo_utils import uuidutils
|
|
||||||
|
|
||||||
cli_opts = [
|
cli_opts = [
|
||||||
cfg.BoolOpt('dry-run',
|
cfg.BoolOpt('dry-run',
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_utils import timeutils
|
||||||
import XenAPI
|
import XenAPI
|
||||||
|
|
||||||
possible_topdir = os.getcwd()
|
possible_topdir = os.getcwd()
|
||||||
@@ -32,7 +33,6 @@ from nova import context
|
|||||||
import nova.conf
|
import nova.conf
|
||||||
from nova import db
|
from nova import db
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from oslo_utils import timeutils
|
|
||||||
from nova.virt import virtapi
|
from nova.virt import virtapi
|
||||||
from nova.virt.xenapi import driver as xenapi_driver
|
from nova.virt.xenapi import driver as xenapi_driver
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user