import os
-from oslo.serialization import jsonutils
from oslo_config import cfg
+from oslo_serialization import jsonutils
import webob.dec
import webob.exc
from xml.parsers import expat
from lxml import etree
-from oslo.serialization import jsonutils
+from oslo_serialization import jsonutils
from oslo_utils import excutils
import six
import webob
import re
import time
-from oslo.serialization import jsonutils
+from oslo_serialization import jsonutils
from oslo_utils import importutils
import webob.dec
import webob.exc
import re
import time
-from oslo.serialization import jsonutils
+from oslo_serialization import jsonutils
from oslo_utils import importutils
import webob.dec
import webob.exc
import abc
-from oslo.serialization import jsonutils
from oslo_config import cfg
+from oslo_serialization import jsonutils
import six
from cinder.db import base
# NOTE(jsbryant): When other oslo libraries switch over non-namespaced
# imports, we will need to add them to the regex below.
oslo_namespace_imports = re.compile(r"from[\s]*oslo[.](concurrency|db"
- "|config|utils)")
+ "|config|utils|serialization)")
def no_vi_headers(physical_line, line_number, lines):
import time
import glanceclient.exc
-from oslo.serialization import jsonutils
from oslo_config import cfg
+from oslo_serialization import jsonutils
from oslo_utils import timeutils
import six.moves.urllib.parse as urlparse
]
from oslo import messaging
-from oslo.serialization import jsonutils
from oslo_config import cfg
+from oslo_serialization import jsonutils
from osprofiler import profiler
import cinder.context
"""
from oslo import messaging
-from oslo.serialization import jsonutils
from oslo_config import cfg
+from oslo_serialization import jsonutils
from cinder import rpc
import ast
import fixtures
-from oslo.serialization import jsonutils
from oslo_concurrency import lockutils
from oslo_config import cfg
from oslo_config import fixture as config_fixture
+from oslo_serialization import jsonutils
from oslo_utils import timeutils
import webob
from webob import exc
from lxml import etree
-from oslo.serialization import jsonutils
+from oslo_serialization import jsonutils
import webob
from cinder.api.contrib import extended_snapshot_attributes
import datetime
-from oslo.serialization import jsonutils
+from oslo_serialization import jsonutils
import cinder
from cinder.api.openstack import wsgi
# License for the specific language governing permissions and limitations
# under the License.
-from oslo.serialization import jsonutils
+from oslo_serialization import jsonutils
import webob
from cinder import db
import mock
from oslo import messaging
-from oslo.serialization import jsonutils
from oslo_config import cfg
+from oslo_serialization import jsonutils
import webob
from cinder.api.contrib import volume_actions
# under the License.
import mock
-from oslo.serialization import jsonutils
+from oslo_serialization import jsonutils
import webob
from cinder import context
# under the License.
import mock
-from oslo.serialization import jsonutils
+from oslo_serialization import jsonutils
import webob
from cinder import context
from xml.dom import minidom
import mock
-from oslo.serialization import jsonutils
from oslo_i18n import fixture as i18n_fixture
+from oslo_serialization import jsonutils
import webob.dec
from cinder.api import common
import iso8601
from lxml import etree
-from oslo.serialization import jsonutils
from oslo_config import cfg
+from oslo_serialization import jsonutils
import webob
from cinder.api import extensions
from xml.dom import minidom
from lxml import etree
-from oslo.serialization import jsonutils
+from oslo_serialization import jsonutils
import six
import webob
import uuid
-from oslo.serialization import jsonutils
from oslo_config import cfg
+from oslo_serialization import jsonutils
import webob
from cinder.api import extensions
import uuid
-from oslo.serialization import jsonutils
from oslo_config import cfg
+from oslo_serialization import jsonutils
import webob
from cinder.api import extensions
from xml.dom import minidom
from lxml import etree
-from oslo.serialization import jsonutils
+from oslo_serialization import jsonutils
import six
import webob
import uuid
-from oslo.serialization import jsonutils
from oslo_config import cfg
+from oslo_serialization import jsonutils
import webob
from cinder.api import extensions
import uuid
-from oslo.serialization import jsonutils
from oslo_config import cfg
+from oslo_serialization import jsonutils
import webob
from cinder.api import extensions
# License for the specific language governing permissions and limitations
# under the License.
-from oslo.serialization import jsonutils
+from oslo_serialization import jsonutils
from oslo_utils import netutils
import requests
import six.moves.urllib.parse as urlparse
"""
import mock
-from oslo.serialization import jsonutils
+from oslo_serialization import jsonutils
from requests import exceptions as request_exceptions
from cinder.compute import nova
import datetime
-from oslo.serialization import jsonutils
+from oslo_serialization import jsonutils
import six
from cinder.scheduler import scheduler_options
import uuid
import mock
-from oslo.serialization import jsonutils
from oslo_concurrency import processutils
+from oslo_serialization import jsonutils
import six
from cinder.backup import driver
import uuid
import mock
-from oslo.serialization import jsonutils
+from oslo_serialization import jsonutils
from cinder.backup import driver
from cinder import context
import mock
import mox
-from oslo.serialization import jsonutils
from oslo_config import cfg
+from oslo_serialization import jsonutils
from oslo_utils import units
from cinder.brick.initiator import connector
"from oslo.utils import foo"))))
self.assertEqual(0, len(list(checks.check_oslo_namespace_imports(
"from oslo_utils import bar"))))
+ self.assertEqual(1, len(list(checks.check_oslo_namespace_imports(
+ "from oslo.serialization import foo"))))
+ self.assertEqual(0, len(list(checks.check_oslo_namespace_imports(
+ "from oslo_serialization import bar"))))
import eventlet
import mock
import mox
-from oslo.serialization import jsonutils
from oslo_config import cfg
+from oslo_serialization import jsonutils
from oslo_utils import importutils
from oslo_utils import timeutils
from oslo_utils import units
"""
import copy
-from oslo.serialization import jsonutils
from oslo_config import cfg
+from oslo_serialization import jsonutils
from cinder import context
from cinder import db
import urllib
import urllib2
-from oslo.serialization import jsonutils
from oslo_concurrency import lockutils
from oslo_config import cfg
+from oslo_serialization import jsonutils
from oslo_utils import units
import six.moves.urllib.parse as urlparse
import re
import time
-from oslo.serialization import jsonutils as json
from oslo_concurrency import lockutils
from oslo_concurrency import processutils
from oslo_config import cfg
+from oslo_serialization import jsonutils as json
from oslo_utils import excutils
from oslo_utils import timeutils
import six
import urllib2
-from oslo.serialization import jsonutils
+from oslo_serialization import jsonutils
from cinder.i18n import _, _LE, _LI
from cinder.openstack.common import log as logging
import time
from oslo import messaging
-from oslo.serialization import jsonutils
from oslo_config import cfg
+from oslo_serialization import jsonutils
from oslo_utils import excutils
from oslo_utils import importutils
from oslo_utils import timeutils
"""
from oslo import messaging
-from oslo.serialization import jsonutils
from oslo_config import cfg
+from oslo_serialization import jsonutils
from cinder import rpc
from cinder.volume import utils