TrivialFix: Remove logging import unused

This patch removes logging import unused in relevant files

Change-Id: I59632385bc184861e046843e45de1f163f54628e
This commit is contained in:
Cao Xuan Hoang 2016-08-26 11:46:08 +07:00
parent c8fa7ef289
commit e384a2df05
47 changed files with 0 additions and 111 deletions

View File

@ -16,13 +16,10 @@
import pecan import pecan
import pecan.deploy import pecan.deploy
from oslo_config import cfg from oslo_config import cfg
from oslo_log import log as logging
from designate.api.v2 import patches from designate.api.v2 import patches
LOG = logging.getLogger(__name__)
cfg.CONF.register_opts([ cfg.CONF.register_opts([
cfg.BoolOpt('pecan_debug', default=False, cfg.BoolOpt('pecan_debug', default=False,
help='Pecan HTML Debug Interface'), help='Pecan HTML Debug Interface'),

View File

@ -15,12 +15,10 @@
# under the License. # under the License.
import flask import flask
import oslo_messaging as messaging import oslo_messaging as messaging
from oslo_log import log as logging
from designate import rpc from designate import rpc
LOG = logging.getLogger(__name__)
blueprint = flask.Blueprint('diagnostics', __name__) blueprint = flask.Blueprint('diagnostics', __name__)

View File

@ -14,12 +14,10 @@
# 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 flask import flask
from oslo_log import log as logging
from designate.central import rpcapi as central_rpcapi from designate.central import rpcapi as central_rpcapi
LOG = logging.getLogger(__name__)
central_api = central_rpcapi.CentralAPI() central_api = central_rpcapi.CentralAPI()
blueprint = flask.Blueprint('quotas', __name__) blueprint = flask.Blueprint('quotas', __name__)

View File

@ -14,12 +14,10 @@
# 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 flask import flask
from oslo_log import log as logging
from designate.central import rpcapi as central_rpcapi from designate.central import rpcapi as central_rpcapi
LOG = logging.getLogger(__name__)
central_api = central_rpcapi.CentralAPI() central_api = central_rpcapi.CentralAPI()
blueprint = flask.Blueprint('reports', __name__) blueprint = flask.Blueprint('reports', __name__)

View File

@ -14,12 +14,10 @@
# 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 flask import flask
from oslo_log import log as logging
from designate.central import rpcapi as central_rpcapi from designate.central import rpcapi as central_rpcapi
LOG = logging.getLogger(__name__)
central_api = central_rpcapi.CentralAPI() central_api = central_rpcapi.CentralAPI()
blueprint = flask.Blueprint('sync', __name__) blueprint = flask.Blueprint('sync', __name__)

View File

@ -14,13 +14,11 @@
# 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 flask import flask
from oslo_log import log as logging
from designate import schema from designate import schema
from designate.central import rpcapi as central_rpcapi from designate.central import rpcapi as central_rpcapi
LOG = logging.getLogger(__name__)
blueprint = flask.Blueprint('limits', __name__) blueprint = flask.Blueprint('limits', __name__)
limits_schema = schema.Schema('v1', 'limits') limits_schema = schema.Schema('v1', 'limits')

View File

@ -16,13 +16,10 @@
import pecan import pecan
import pecan.deploy import pecan.deploy
from oslo_config import cfg from oslo_config import cfg
from oslo_log import log as logging
from designate.api.v2 import patches from designate.api.v2 import patches
LOG = logging.getLogger(__name__)
cfg.CONF.register_opts([ cfg.CONF.register_opts([
cfg.BoolOpt('pecan_debug', default=False, cfg.BoolOpt('pecan_debug', default=False,
help='Pecan HTML Debug Interface'), help='Pecan HTML Debug Interface'),

View File

@ -15,12 +15,9 @@
# under the License. # under the License.
from pecan import expose from pecan import expose
from oslo_log import log as logging
from designate import exceptions from designate import exceptions
LOG = logging.getLogger(__name__)
class ErrorsController(object): class ErrorsController(object):

View File

@ -15,13 +15,11 @@
# under the License. # under the License.
import pecan import pecan
from oslo_log import log as logging
from oslo_config import cfg from oslo_config import cfg
from designate.api.v2.controllers import rest from designate.api.v2.controllers import rest
LOG = logging.getLogger(__name__)
CONF = cfg.CONF CONF = cfg.CONF

View File

@ -29,7 +29,6 @@ import inspect
import pecan import pecan
import pecan.rest import pecan.rest
import pecan.routing import pecan.routing
from oslo_log import log as logging
from designate import exceptions from designate import exceptions
from designate.central import rpcapi as central_rpcapi from designate.central import rpcapi as central_rpcapi
@ -37,9 +36,6 @@ from designate.pool_manager import rpcapi as pool_mgr_rpcapi
from designate.i18n import _ from designate.i18n import _
LOG = logging.getLogger(__name__)
class RestController(pecan.rest.RestController): class RestController(pecan.rest.RestController):
""" """
Extension for Pecan's RestController to better handle POST/PUT/PATCH Extension for Pecan's RestController to better handle POST/PUT/PATCH

View File

@ -14,7 +14,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 oslo_config import cfg from oslo_config import cfg
from oslo_log import log as logging
from stevedore import named from stevedore import named
from designate.api.v2.controllers import limits from designate.api.v2.controllers import limits
@ -29,8 +28,6 @@ from designate.api.v2.controllers import tsigkeys
from designate.api.v2.controllers import recordsets from designate.api.v2.controllers import recordsets
from designate.api.v2.controllers import quotas from designate.api.v2.controllers import quotas
LOG = logging.getLogger(__name__)
class RootController(object): class RootController(object):
""" """

View File

@ -13,14 +13,11 @@
# under the License. # under the License.
import pecan import pecan
from oslo_log import log as logging
from designate import utils from designate import utils
from designate.api.v2.controllers import rest from designate.api.v2.controllers import rest
from designate.objects.adapters import DesignateAdapter from designate.objects.adapters import DesignateAdapter
LOG = logging.getLogger(__name__)
class ServiceStatusController(rest.RestController): class ServiceStatusController(rest.RestController):
SORT_KEYS = ['created_at', 'id', 'updated_at', 'hostname', 'service_name', SORT_KEYS = ['created_at', 'id', 'updated_at', 'hostname', 'service_name',

View File

@ -18,13 +18,11 @@ from inspect import getargspec
import six import six
from oslo_serialization import jsonutils from oslo_serialization import jsonutils
from oslo_log import log as logging
import pecan.core import pecan.core
from designate import exceptions from designate import exceptions
JSON_TYPES = ('application/json', 'application/json-patch+json') JSON_TYPES = ('application/json', 'application/json-patch+json')
LOG = logging.getLogger(__name__)
class Request(pecan.core.Request): class Request(pecan.core.Request):

View File

@ -15,14 +15,9 @@
# under the License. # under the License.
import abc import abc
from oslo_log import log as logging
from designate.plugin import DriverPlugin from designate.plugin import DriverPlugin
LOG = logging.getLogger(__name__)
class AgentBackend(DriverPlugin): class AgentBackend(DriverPlugin):
"""Base class for backend implementations""" """Base class for backend implementations"""
__plugin_type__ = 'backend' __plugin_type__ = 'backend'

View File

@ -14,9 +14,6 @@
# under the License. # under the License.
from oslo_config import cfg from oslo_config import cfg
from oslo_log import log
LOG = log.getLogger(__name__)
cfg.CONF.register_group(cfg.OptGroup( cfg.CONF.register_group(cfg.OptGroup(

View File

@ -18,15 +18,12 @@ import os
from migrate.versioning import api as versioning_api from migrate.versioning import api as versioning_api
from oslo_config import cfg from oslo_config import cfg
from oslo_log import log as logging
from oslo_db import exception from oslo_db import exception
from designate.manage import base from designate.manage import base
from designate.sqlalchemy import utils from designate.sqlalchemy import utils
LOG = logging.getLogger(__name__)
REPOSITORY = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', REPOSITORY = os.path.abspath(os.path.join(os.path.dirname(__file__), '..',
'pool_manager', 'pool_manager',
'cache', 'impl_sqlalchemy', 'cache', 'impl_sqlalchemy',

View File

@ -18,14 +18,12 @@ import os
from migrate.versioning import api as versioning_api from migrate.versioning import api as versioning_api
from oslo_config import cfg from oslo_config import cfg
from oslo_db.sqlalchemy.migration_cli import manager as migration_manager from oslo_db.sqlalchemy.migration_cli import manager as migration_manager
from oslo_log import log as logging
from designate.manage import base from designate.manage import base
from designate import rpc from designate import rpc
from designate import utils from designate import utils
from designate.central import rpcapi as central_rpcapi from designate.central import rpcapi as central_rpcapi
LOG = logging.getLogger(__name__)
REPOSITORY = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', REPOSITORY = os.path.abspath(os.path.join(os.path.dirname(__file__), '..',
'backend', 'impl_powerdns', 'backend', 'impl_powerdns',

View File

@ -11,12 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters import base from designate.objects.adapters import base
LOG = logging.getLogger(__name__)
class APIv1Adapter(base.DesignateAdapter): class APIv1Adapter(base.DesignateAdapter):

View File

@ -12,14 +12,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.urllib import parse from six.moves.urllib import parse
from oslo_log import log as logging
from oslo_config import cfg from oslo_config import cfg
from designate.objects.adapters import base from designate.objects.adapters import base
from designate.objects import base as obj_base from designate.objects import base as obj_base
from designate import exceptions from designate import exceptions
LOG = logging.getLogger(__name__)
cfg.CONF.import_opt('api_base_uri', 'designate.api', group='service:api') cfg.CONF.import_opt('api_base_uri', 'designate.api', group='service:api')
cfg.CONF.import_opt('enable_host_header', 'designate.api', group='service:api') cfg.CONF.import_opt('enable_host_header', 'designate.api', group='service:api')

View File

@ -11,11 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class BlacklistAPIv2Adapter(base.APIv2Adapter): class BlacklistAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,11 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class FloatingIPAPIv2Adapter(base.APIv2Adapter): class FloatingIPAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,11 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class PoolAPIv2Adapter(base.APIv2Adapter): class PoolAPIv2Adapter(base.APIv2Adapter):

View File

@ -12,11 +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.
import six import six
from oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class PoolAttributeAPIv2Adapter(base.APIv2Adapter): class PoolAttributeAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,11 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class PoolNsRecordAPIv2Adapter(base.APIv2Adapter): class PoolNsRecordAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,11 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class QuotaAPIv2Adapter(base.APIv2Adapter): class QuotaAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,11 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class RecordAPIv2Adapter(base.APIv2Adapter): class RecordAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,12 +11,10 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
from designate import exceptions from designate import exceptions
LOG = logging.getLogger(__name__)
class RecordSetAPIv2Adapter(base.APIv2Adapter): class RecordSetAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,11 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class ServiceStatusAPIv2Adapter(base.APIv2Adapter): class ServiceStatusAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,11 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class TldAPIv2Adapter(base.APIv2Adapter): class TldAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,11 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class TsigKeyAPIv2Adapter(base.APIv2Adapter): class TsigKeyAPIv2Adapter(base.APIv2Adapter):

View File

@ -13,11 +13,8 @@
# under the License. # under the License.
import re import re
from oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class NotSpecifiedSential: class NotSpecifiedSential:

View File

@ -11,13 +11,10 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class ZoneAPIv2Adapter(base.APIv2Adapter): class ZoneAPIv2Adapter(base.APIv2Adapter):

View File

@ -12,11 +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.
import six import six
from oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class ZoneAttributeAPIv2Adapter(base.APIv2Adapter): class ZoneAttributeAPIv2Adapter(base.APIv2Adapter):

View File

@ -13,11 +13,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class ZoneExportAPIv2Adapter(base.APIv2Adapter): class ZoneExportAPIv2Adapter(base.APIv2Adapter):

View File

@ -13,11 +13,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class ZoneImportAPIv2Adapter(base.APIv2Adapter): class ZoneImportAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,12 +11,10 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
from designate import utils from designate import utils
LOG = logging.getLogger(__name__)
class ZoneMasterAPIv2Adapter(base.APIv2Adapter): class ZoneMasterAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,11 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class ZoneTransferAcceptAPIv2Adapter(base.APIv2Adapter): class ZoneTransferAcceptAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,13 +11,11 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.api_v2 import base from designate.objects.adapters.api_v2 import base
from designate import objects from designate import objects
from designate import policy from designate import policy
from designate import exceptions from designate import exceptions
LOG = logging.getLogger(__name__)
class ZoneTransferRequestAPIv2Adapter(base.APIv2Adapter): class ZoneTransferRequestAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,11 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.yaml import base from designate.objects.adapters.yaml import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class PoolAlsoNotifyYAMLAdapter(base.YAMLAdapter): class PoolAlsoNotifyYAMLAdapter(base.YAMLAdapter):

View File

@ -12,11 +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.
import six import six
from oslo_log import log as logging
from designate.objects.adapters.yaml import base from designate.objects.adapters.yaml import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class PoolAttributeYAMLAdapter(base.YAMLAdapter): class PoolAttributeYAMLAdapter(base.YAMLAdapter):

View File

@ -11,11 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.yaml import base from designate.objects.adapters.yaml import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class PoolNameserverYAMLAdapter(base.YAMLAdapter): class PoolNameserverYAMLAdapter(base.YAMLAdapter):

View File

@ -11,11 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.yaml import base from designate.objects.adapters.yaml import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class PoolNsRecordYAMLAdapter(base.YAMLAdapter): class PoolNsRecordYAMLAdapter(base.YAMLAdapter):

View File

@ -11,11 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.yaml import base from designate.objects.adapters.yaml import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class PoolTargetYAMLAdapter(base.YAMLAdapter): class PoolTargetYAMLAdapter(base.YAMLAdapter):

View File

@ -11,11 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 oslo_log import log as logging
from designate.objects.adapters.yaml import base from designate.objects.adapters.yaml import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class PoolTargetMasterYAMLAdapter(base.YAMLAdapter): class PoolTargetMasterYAMLAdapter(base.YAMLAdapter):

View File

@ -12,11 +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.
import six import six
from oslo_log import log as logging
from designate.objects.adapters.yaml import base from designate.objects.adapters.yaml import base
from designate import objects from designate import objects
LOG = logging.getLogger(__name__)
class PoolTargetOptionYAMLAdapter(base.YAMLAdapter): class PoolTargetOptionYAMLAdapter(base.YAMLAdapter):

View File

@ -18,11 +18,8 @@ import re
import jsonschema import jsonschema
from jsonschema import compat from jsonschema import compat
import netaddr import netaddr
from oslo_log import log as logging
LOG = logging.getLogger(__name__)
# NOTE(kiall): All of the below regular expressions are termined with # NOTE(kiall): All of the below regular expressions are termined with
# "\Z", rather than simply "$" to ensure a string with a # "\Z", rather than simply "$" to ensure a string with a
# trailing newline is NOT matched. See bug #1471158. # trailing newline is NOT matched. See bug #1471158.

View File

@ -14,13 +14,10 @@
# 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 jsonschema import validators from jsonschema import validators
from oslo_log import log as logging
from designate.schema import _validators from designate.schema import _validators
LOG = logging.getLogger(__name__)
Draft3Validator = validators.extend( Draft3Validator = validators.extend(
validators.Draft3Validator, validators.Draft3Validator,
validators={ validators={