Enable H306 check and fix import ordering

To better align with other OpenStack projects and to reduce the
ongoing problem with duplicate imports, this patch re-enables the
H306 check for proper module import order.

Change-Id: Iced92590829f6d9177d64ad4868aebe6eafd6a8a
This commit is contained in:
Michael Johnson 2021-11-18 00:28:18 +00:00
parent c6d15d3d5e
commit 0e16095a80
235 changed files with 461 additions and 488 deletions

View File

@ -16,14 +16,14 @@
import pprint
import time
import requests
from oslo_config import cfg
from oslo_log import log as logging
from oslo_serialization import jsonutils as json
from oslo_utils import importutils
import requests
from designate import exceptions
from designate.backend import base
from designate import exceptions
from designate.i18n import _LE

View File

@ -13,16 +13,16 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import os
import logging
import os
from requests import auth
import kerberos
from requests import auth
from designate.utils import generate_uuid
from designate.backend.impl_ipa import IPAAuthError
from designate.i18n import _LW
from designate.i18n import _LE
from designate.i18n import _LW
from designate.utils import generate_uuid
LOG = logging.getLogger(__name__)

View File

@ -17,8 +17,8 @@ from oslo_config import cfg
from oslo_log import log as logging
from designate.context import DesignateContext
from designate.objects import Record
from designate.notification_handler.base import NotificationHandler
from designate.objects import Record
LOG = logging.getLogger(__name__)

View File

@ -14,8 +14,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import sys
import binascii
import sys
import dns
import dns.message

View File

@ -14,8 +14,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import socket
import binascii
import socket
# Bind to UDP 5355
sock_udp = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

View File

@ -14,19 +14,18 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import sys
import argparse
import logging
import sys
import dns.exception
from dns.ipv4 import inet_aton
import netaddr
from designateclient.v2 import client
from designateclient import shell
from keystoneauth1.identity import generic
from keystoneauth1 import session as keystone_session
import netaddr
from designateclient import shell
from designateclient.v2 import client
auth = generic.Password(

View File

@ -14,11 +14,11 @@
# License for the specific language governing permissions and limitations
# under the License.
import sys
import re
import os
import argparse
import logging
import os
import re
import sys
import dns.zone

View File

@ -25,18 +25,17 @@
"""
import dns
import dns.flags
import dns.message
import dns.opcode
import dns.rcode
import dns.message
import dns.flags
import dns.opcode
from oslo_config import cfg
from oslo_log import log as logging
from designate import utils
from designate import dnsutils
from designate.backend import agent_backend
import designate.backend.private_codes as pcodes
from designate import dnsutils
from designate import utils
LOG = logging.getLogger(__name__)
CONF = cfg.CONF

View File

@ -26,12 +26,12 @@
from oslo_config import cfg
from designate import utils
from designate import dnsutils
from designate import service
from designate.agent import handler
from designate.backend import agent_backend
from designate.conf.agent import DEFAULT_AGENT_PORT
from designate import dnsutils
from designate import service
from designate import utils
CONF = cfg.CONF

View File

@ -12,9 +12,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan.deploy
from oslo_config import cfg
from oslo_log import log as logging
import pecan.deploy
LOG = logging.getLogger(__name__)

View File

@ -13,9 +13,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from oslo_config import cfg
import pecan
import pecan.deploy
from oslo_config import cfg
from designate.api.v2 import patches

View File

@ -13,12 +13,11 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_log import log as logging
import pecan
from designate.api.v2.controllers import rest
from designate.api.admin.views.extensions import reports as reports_view
from designate.api.v2.controllers import rest
LOG = logging.getLogger(__name__)

View File

@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_log import log as logging
import pecan
from designate.api.v2.controllers import rest
from designate import utils
from designate import policy
from designate import utils
LOG = logging.getLogger(__name__)

View File

@ -13,12 +13,12 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_log import log as logging
import pecan
from designate import schema
from designate.api.v2.controllers import rest
from designate.api.admin.views.extensions import quotas as quotas_view
from designate.api.v2.controllers import rest
from designate import schema
LOG = logging.getLogger(__name__)

View File

@ -16,9 +16,9 @@
from oslo_log import log as logging
from designate.api.v2.controllers import rest
from designate.api.admin.controllers.extensions import counts
from designate.api.admin.controllers.extensions import tenants
from designate.api.v2.controllers import rest
LOG = logging.getLogger(__name__)

View File

@ -14,11 +14,11 @@
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_log import log as logging
import pecan
from designate.api.v2.controllers import rest
from designate.api.admin.views.extensions import reports as reports_view
from designate.api.v2.controllers import rest
LOG = logging.getLogger(__name__)

View File

@ -14,8 +14,8 @@
from oslo_log import log as logging
from designate.api.v2.controllers import rest
from designate.api.admin.controllers.extensions import export
from designate.api.v2.controllers import rest
LOG = logging.getLogger(__name__)

View File

@ -14,18 +14,18 @@
# License for the specific language governing permissions and limitations
# under the License.
import flask
import webob.dec
from oslo_config import cfg
import oslo_messaging as messaging
from oslo_log import log as logging
import oslo_messaging as messaging
from oslo_middleware import base
from oslo_middleware import request_id
from oslo_serialization import jsonutils
from oslo_utils import strutils
import webob.dec
from designate import context
from designate import exceptions
from designate import notifications
from designate import context
from designate import objects
from designate.objects.adapters import DesignateAdapter

View File

@ -13,9 +13,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan.deploy
from oslo_config import cfg
from oslo_log import log as logging
import pecan.deploy
LOG = logging.getLogger(__name__)

View File

@ -13,9 +13,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from oslo_config import cfg
import pecan
import pecan.deploy
from oslo_config import cfg
from designate.api.v2 import patches

View File

@ -13,14 +13,13 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_log import log as logging
import pecan
from designate import utils
from designate.api.v2.controllers import rest
from designate.objects import Blacklist
from designate.objects.adapters import DesignateAdapter
from designate.objects import Blacklist
from designate import utils
LOG = logging.getLogger(__name__)

View File

@ -15,13 +15,13 @@
# under the License.
import re
import pecan
from oslo_log import log as logging
import pecan
from designate.api.v2.controllers import rest
from designate import exceptions
from designate import objects
from designate.objects.adapters import DesignateAdapter
from designate.api.v2.controllers import rest
LOG = logging.getLogger(__name__)

View File

@ -13,9 +13,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_config import cfg
import pecan
from designate.api.v2.controllers import rest

View File

@ -12,13 +12,13 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_log import log as logging
import pecan
from designate import utils
from designate.api.v2.controllers import rest
from designate.objects import Pool
from designate.objects.adapters import DesignateAdapter
from designate.objects import Pool
from designate import utils
LOG = logging.getLogger(__name__)

View File

@ -13,9 +13,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_config import cfg
from oslo_log import log as logging
import pecan
from designate.api.v2.controllers import rest
from designate.common import keystone

View File

@ -13,13 +13,13 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_log import log as logging
import pecan
from designate import utils
from designate.api.v2.controllers import common
from designate.api.v2.controllers import rest
from designate.objects.adapters import DesignateAdapter
from designate import utils
LOG = logging.getLogger(__name__)

View File

@ -13,8 +13,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.api.v2.controllers import rest
from designate.api.v2.controllers import floatingips
from designate.api.v2.controllers import rest
class ReverseController(rest.RestController):

View File

@ -16,17 +16,17 @@
from oslo_config import cfg
from stevedore import named
from designate.api.v2.controllers import limits
from designate.api.v2.controllers import reverse
from designate.api.v2.controllers import tlds
from designate.api.v2.controllers import blacklists
from designate.api.v2.controllers import errors
from designate.api.v2.controllers import limits
from designate.api.v2.controllers import pools
from designate.api.v2.controllers import service_status
from designate.api.v2.controllers import zones
from designate.api.v2.controllers import tsigkeys
from designate.api.v2.controllers import recordsets
from designate.api.v2.controllers import quotas
from designate.api.v2.controllers import recordsets
from designate.api.v2.controllers import reverse
from designate.api.v2.controllers import service_status
from designate.api.v2.controllers import tlds
from designate.api.v2.controllers import tsigkeys
from designate.api.v2.controllers import zones
class RootController(object):

View File

@ -14,9 +14,9 @@
import pecan
from designate import utils
from designate.api.v2.controllers import rest
from designate.objects.adapters import DesignateAdapter
from designate import utils
class ServiceStatusController(rest.RestController):

View File

@ -12,13 +12,13 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_log import log as logging
import pecan
from designate import utils
from designate.api.v2.controllers import rest
from designate.objects import Tld
from designate.objects.adapters import DesignateAdapter
from designate.objects import Tld
from designate import utils
LOG = logging.getLogger(__name__)

View File

@ -13,14 +13,13 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_log import log as logging
import pecan
from designate import utils
from designate.api.v2.controllers import rest
from designate.objects import TsigKey
from designate.objects.adapters import DesignateAdapter
from designate.objects import TsigKey
from designate import utils
LOG = logging.getLogger(__name__)

View File

@ -13,18 +13,18 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_config import cfg
from oslo_log import log as logging
import pecan
from designate import exceptions
from designate import utils
from designate.api.v2.controllers import rest
from designate.api.v2.controllers.zones import nameservers
from designate.api.v2.controllers.zones import recordsets
from designate.api.v2.controllers.zones import tasks
from designate.api.v2.controllers.zones import nameservers
from designate import exceptions
from designate import objects
from designate.objects.adapters import DesignateAdapter
from designate import utils
CONF = cfg.CONF

View File

@ -13,12 +13,12 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_log import log as logging
import pecan
from designate import utils
from designate.api.v2.controllers import rest
from designate.objects.adapters import DesignateAdapter
from designate import utils
LOG = logging.getLogger(__name__)

View File

@ -13,15 +13,15 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_log import log as logging
import pecan
from designate import exceptions
from designate import utils
from designate.api.v2.controllers import common
from designate.api.v2.controllers import rest
from designate.objects import RecordSet
from designate import exceptions
from designate.objects.adapters import DesignateAdapter
from designate.objects import RecordSet
from designate import utils
LOG = logging.getLogger(__name__)

View File

@ -15,18 +15,18 @@
# under the License.
from oslo_log import log as logging
from designate.api.v2.controllers.zones.tasks.transfer_requests \
import TransferRequestsController as TRC
from designate.api.v2.controllers.zones.tasks.transfer_accepts \
import TransferAcceptsController as TRA
from designate.api.v2.controllers.zones.tasks import abandon
from designate.api.v2.controllers.zones.tasks.xfr import XfrController
from designate.api.v2.controllers.zones.tasks.imports \
import ZoneImportController
from designate.api.v2.controllers.zones.tasks.exports \
import ZoneExportsController
from designate.api.v2.controllers.zones.tasks.exports \
import ZoneExportCreateController
from designate.api.v2.controllers.zones.tasks.exports \
import ZoneExportsController
from designate.api.v2.controllers.zones.tasks.imports \
import ZoneImportController
from designate.api.v2.controllers.zones.tasks.transfer_accepts \
import TransferAcceptsController as TRA
from designate.api.v2.controllers.zones.tasks.transfer_requests \
import TransferRequestsController as TRC
from designate.api.v2.controllers.zones.tasks.xfr import XfrController
LOG = logging.getLogger(__name__)

View File

@ -12,11 +12,11 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_log import log as logging
import pecan
from designate import utils
from designate.api.v2.controllers import rest
from designate import utils
LOG = logging.getLogger(__name__)

View File

@ -13,14 +13,14 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_log import log as logging
import pecan
from designate.api.v2.controllers import rest
from designate import exceptions
from designate.objects.adapters import DesignateAdapter
from designate import policy
from designate import utils
from designate.api.v2.controllers import rest
from designate.objects.adapters import DesignateAdapter
LOG = logging.getLogger(__name__)

View File

@ -13,13 +13,13 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_log import log as logging
import pecan
from designate import exceptions
from designate import utils
from designate.api.v2.controllers import rest
from designate import exceptions
from designate.objects.adapters import DesignateAdapter
from designate import utils
LOG = logging.getLogger(__name__)

View File

@ -13,13 +13,13 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_log import log as logging
import pecan
from designate import utils
from designate.api.v2.controllers import rest
from designate.objects import ZoneTransferAccept
from designate.objects.adapters import DesignateAdapter
from designate.objects import ZoneTransferAccept
from designate import utils
LOG = logging.getLogger(__name__)

View File

@ -13,14 +13,14 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_log import log as logging
import pecan
from designate import utils
from designate import exceptions
from designate.api.v2.controllers import rest
from designate.objects import ZoneTransferRequest
from designate import exceptions
from designate.objects.adapters import DesignateAdapter
from designate.objects import ZoneTransferRequest
from designate import utils
LOG = logging.getLogger(__name__)

View File

@ -13,11 +13,11 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pecan
from oslo_log import log as logging
import pecan
from designate import utils
from designate.api.v2.controllers import rest
from designate import utils
LOG = logging.getLogger(__name__)

View File

@ -17,11 +17,11 @@ from oslo_config import cfg
from oslo_log import log as logging
from paste import deploy
from designate.common import config
from designate import conf
from designate import heartbeat_emitter
from designate import policy
from designate import rpc
from designate.common import config
CONF = conf.CONF

View File

@ -24,23 +24,23 @@
Configured in the [service:pool_manager] section
"""
import eventlet
import dns
import dns.rdataclass
import dns.rdatatype
import dns.exception
import dns.flags
import dns.rcode
import dns.message
import dns.opcode
import dns.rcode
import dns.rdataclass
import dns.rdatatype
import eventlet
from oslo_config import cfg
from oslo_log import log as logging
from designate.backend import base
from designate import exceptions
from designate.conf.agent import DEFAULT_AGENT_PORT
from designate.mdns import rpcapi as mdns_api
import designate.backend.private_codes as pcodes
from designate.conf.agent import DEFAULT_AGENT_PORT
from designate import exceptions
from designate.mdns import rpcapi as mdns_api
dns_query = eventlet.import_patched('dns.query')

View File

@ -16,10 +16,10 @@
import itertools
import dns.rdata
import dns.rdatatype
import dns.rdataclass
from oslo_config import cfg
import dns.rdatatype
from oslo_concurrency import lockutils
from oslo_config import cfg
from oslo_log import log as logging
from designate.backend.agent_backend import base

View File

@ -51,9 +51,9 @@ from oslo_concurrency.processutils import ProcessExecutionError
from oslo_config import cfg
from oslo_log import log as logging
from designate.backend.agent_backend import base
from designate import exceptions
from designate import utils
from designate.backend.agent_backend import base
from designate.utils import execute
LOG = logging.getLogger(__name__)

View File

@ -40,8 +40,8 @@ Configured in [service:agent:gdnsd]
import errno
import os
import tempfile
import string
import tempfile
import dns
import dns.resolver
@ -49,9 +49,9 @@ from oslo_concurrency.processutils import ProcessExecutionError
from oslo_config import cfg
from oslo_log import log as logging
from designate import utils
from designate import exceptions
from designate.backend.agent_backend import base
from designate import exceptions
from designate import utils
CFG_GROUP_NAME = 'backend:agent:gdnsd'
LOG = logging.getLogger(__name__)

View File

@ -43,8 +43,8 @@ from oslo_concurrency.processutils import ProcessExecutionError
from oslo_config import cfg
from oslo_log import log as logging
from designate import exceptions
from designate.backend.agent_backend import base
from designate import exceptions
from designate.utils import execute
CFG_GROUP_NAME = 'backend:agent:knot2'

View File

@ -15,11 +15,11 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_config import cfg
from oslo_log import log as logging
from os_win import utilsfactory
from os_win import constants
from os_win import exceptions as os_win_exc
from os_win import utilsfactory
from oslo_config import cfg
from oslo_log import log as logging
from designate.backend.agent_backend import base
from designate import exceptions

View File

@ -19,8 +19,8 @@ from oslo_config import cfg
from oslo_log import log as logging
from designate.context import DesignateContext
from designate.plugin import DriverPlugin
from designate.mdns import rpcapi as mdns_api
from designate.plugin import DriverPlugin
LOG = logging.getLogger(__name__)
CONF = cfg.CONF

View File

@ -17,12 +17,12 @@
import time
from urllib import parse as urlparse
import requests
from akamai import edgegrid
from oslo_log import log as logging
import requests
from designate import exceptions
from designate.backend import base
from designate import exceptions
LOG = logging.getLogger(__name__)

View File

@ -25,10 +25,10 @@ import subprocess
from oslo_log import log as logging
from oslo_utils import strutils
from designate import exceptions
from designate import utils
from designate.backend import base
from designate.conf.mdns import DEFAULT_MDNS_PORT
from designate import exceptions
from designate import utils
LOG = logging.getLogger(__name__)
DEFAULT_MASTER_PORT = DEFAULT_MDNS_PORT

View File

@ -13,8 +13,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designateclient.v2 import client
from designateclient import exceptions
from designateclient.v2 import client
from keystoneauth1.identity import v3 as v3_auth
from keystoneauth1 import session as ks_session
from oslo_log import log as logging

View File

@ -22,9 +22,9 @@ from oslo_serialization import jsonutils
import requests
from requests.adapters import HTTPAdapter
from designate.backend import base
from designate import exceptions
from designate import utils
from designate.backend import base
LOG = logging.getLogger(__name__)
CONF = cfg.CONF

View File

@ -16,9 +16,9 @@
from oslo_log import log as logging
from designate.backend import base
from designate import exceptions
from designate.backend.impl_infoblox import connector
from designate.backend.impl_infoblox import object_manipulator
from designate import exceptions
LOG = logging.getLogger(__name__)

View File

@ -13,12 +13,12 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import requests
from oslo_config import cfg
from oslo_log import log as logging
import requests
from designate import exceptions
from designate.backend import base
from designate import exceptions
LOG = logging.getLogger(__name__)
CONF = cfg.CONF

View File

@ -25,8 +25,8 @@ import ssl
import eventlet
from oslo_log import log as logging
from designate import exceptions
from designate.backend import base
from designate import exceptions
LOG = logging.getLogger(__name__)

View File

@ -14,12 +14,12 @@
import urllib
import netaddr
import requests
from oslo_config import cfg
from oslo_log import log as logging
import requests
from designate import exceptions
from designate.backend import base
from designate import exceptions
LOG = logging.getLogger(__name__)
CONF = cfg.CONF

View File

@ -18,8 +18,8 @@ from oslo_config import cfg
from oslo_log import log as logging
import oslo_messaging as messaging
from designate import rpc
from designate.loggingutils import rpc_logging
from designate import rpc
LOG = logging.getLogger(__name__)

View File

@ -14,42 +14,42 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import re
import collections
import copy
import functools
import threading
import itertools
import string
import signal
import random
from random import SystemRandom
import re
import signal
import string
import threading
import time
from eventlet import tpool
from dns import zone as dnszone
from dns import exception as dnsexception
from dns import zone as dnszone
from eventlet import tpool
from oslo_config import cfg
import oslo_messaging as messaging
from oslo_log import log as logging
import oslo_messaging as messaging
from designate import context as dcontext
from designate import coordination
from designate import exceptions
from designate import dnsutils
from designate import exceptions
from designate.mdns import rpcapi as mdns_rpcapi
from designate import network_api
from designate import notifications
from designate import objects
from designate import policy
from designate import quota
from designate import rpc
from designate import service
from designate import scheduler
from designate import service
from designate import storage
from designate import utils
from designate.mdns import rpcapi as mdns_rpcapi
from designate.storage import transaction
from designate.storage import transaction_shallow_copy
from designate import utils
from designate.worker import rpcapi as worker_rpcapi

View File

@ -18,13 +18,13 @@ import sys
from oslo_log import log as logging
from oslo_reports import guru_meditation_report as gmr
from designate.agent import service as agent_service
import designate.conf
from designate import heartbeat_emitter
from designate import hookpoints
from designate import service
from designate import utils
from designate import version
from designate.agent import service as agent_service
CONF = designate.conf.CONF

View File

@ -19,13 +19,13 @@ from oslo_config import cfg
from oslo_log import log as logging
from oslo_reports import guru_meditation_report as gmr
from designate.api import service as api_service
import designate.conf
from designate import heartbeat_emitter
from designate import hookpoints
from designate import service
from designate import utils
from designate import version
from designate.api import service as api_service
CONF = designate.conf.CONF

View File

@ -18,13 +18,13 @@ import sys
from oslo_log import log as logging
from oslo_reports import guru_meditation_report as gmr
from designate.central import service as central_service
import designate.conf
from designate import heartbeat_emitter
from designate import hookpoints
from designate import service
from designate import utils
from designate import version
from designate.central import service as central_service
CONF = designate.conf.CONF

View File

@ -21,10 +21,10 @@ from oslo_reports import guru_meditation_report as gmr
import designate.conf
from designate import heartbeat_emitter
from designate import hookpoints
from designate.mdns import service as mdns_service
from designate import service
from designate import utils
from designate import version
from designate.mdns import service as mdns_service
CONF = designate.conf.CONF

View File

@ -21,10 +21,10 @@ from oslo_reports import guru_meditation_report as gmr
import designate.conf
from designate import heartbeat_emitter
from designate import hookpoints
from designate.producer import service as producer_service
from designate import service
from designate import utils
from designate import version
from designate.producer import service as producer_service
LOG = logging.getLogger(__name__)
CONF = designate.conf.CONF

View File

@ -22,9 +22,9 @@ import designate.conf
from designate import heartbeat_emitter
from designate import hookpoints
from designate import service
from designate.sink import service as sink_service
from designate import utils
from designate import version
from designate.sink import service as sink_service
CONF = designate.conf.CONF

View File

@ -13,9 +13,9 @@
# under the License.
from oslo_config import cfg
from designate.conf import base # noqa
from designate.conf import agent
from designate.conf import api
from designate.conf import base # noqa
from designate.conf import bind9
from designate.conf import central
from designate.conf import coordination

View File

@ -16,8 +16,8 @@
import copy
import itertools
from keystoneauth1 import plugin
from keystoneauth1.access import service_catalog as ksa_service_catalog
from keystoneauth1 import plugin
from oslo_context import context
from oslo_log import log as logging

View File

@ -15,16 +15,16 @@
# under the License.
import random
import socket
import time
from threading import Lock
import time
import dns
import dns.exception
from dns import rdatatype
import dns.zone
import eventlet
from dns import rdatatype
from oslo_serialization import base64
from oslo_log import log as logging
from oslo_serialization import base64
import designate.conf
from designate import context

View File

@ -17,11 +17,11 @@ from oslo_log import log as logging
from oslo_service import loopingcall
from oslo_utils import timeutils
from designate.central import rpcapi as central_rpcapi
import designate.conf
from designate import context
from designate import objects
from designate import plugin
from designate.central import rpcapi as central_rpcapi
CONF = designate.conf.CONF

View File

@ -13,12 +13,12 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import sys
import functools
import sys
import pkg_resources
from oslo_config import cfg
from oslo_log import log
import pkg_resources
from stevedore import hook

View File

@ -15,18 +15,18 @@
# under the License.
import sys
import yaml
from oslo_config import cfg
from oslo_log import log as logging
import oslo_messaging as messaging
import yaml
from designate import exceptions
from designate import rpc
from designate import objects
from designate import policy
from designate.central import rpcapi as central_rpcapi
from designate import exceptions
from designate.manage import base
from designate import objects
from designate.objects.adapters import DesignateAdapter
from designate import policy
from designate import rpc
LOG = logging.getLogger(__name__)

View File

@ -18,11 +18,11 @@ import os
from oslo_config import cfg
from oslo_log import log as logging
from designate.central import rpcapi as central_rpcapi
from designate import exceptions
from designate.manage import base
from designate import objects
from designate import rpc
from designate.central import rpcapi as central_rpcapi
from designate.manage import base
from designate.schema import format

View File

@ -13,8 +13,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import oslo_messaging as messaging
from oslo_log import log as logging
import oslo_messaging as messaging
from designate.central import rpcapi as central_api

View File

@ -23,8 +23,8 @@ import dns.rdatatype
from oslo_config import cfg
from oslo_log import log as logging
from designate import exceptions
from designate.central import rpcapi as central_api
from designate import exceptions
from designate.mdns import xfr
LOG = logging.getLogger(__name__)

View File

@ -13,18 +13,18 @@
# License for the specific language governing permissions and limitations
# under the License.
import time
import socket
import time
import eventlet
import dns
import dns.rdataclass
import dns.rdatatype
import dns.exception
import dns.flags
import dns.rcode
import dns.message
import dns.opcode
import dns.rcode
import dns.rdataclass
import dns.rdatatype
import eventlet
from oslo_config import cfg
from oslo_log import log as logging

View File

@ -16,8 +16,8 @@ from oslo_config import cfg
from oslo_log import log as logging
import oslo_messaging as messaging
from designate import rpc
from designate.loggingutils import rpc_logging
from designate import rpc
CONF = cfg.CONF
LOG = logging.getLogger(__name__)

View File

@ -16,14 +16,14 @@
from oslo_config import cfg
from oslo_log import log as logging
from designate import dnsutils
from designate import service
from designate import storage
from designate import utils
from designate.conf.mdns import DEFAULT_MDNS_PORT
from designate import dnsutils
from designate.mdns import handler
from designate.mdns import notify
from designate.mdns import xfr
from designate import service
from designate import storage
from designate import utils
LOG = logging.getLogger(__name__)
CONF = cfg.CONF

View File

@ -16,8 +16,8 @@
import time
from oslo_config import cfg
from oslo_utils import timeutils
from oslo_log import log as logging
from oslo_utils import timeutils
from designate import dnsutils
from designate import exceptions

View File

@ -15,8 +15,8 @@
# under the License.
from oslo_log import log as logging
from designate.utils import generate_uuid
from designate.network_api import base
from designate.utils import generate_uuid
LOG = logging.getLogger(__name__)

View File

@ -21,9 +21,9 @@ from oslo_log import log as logging
import re
from designate import exceptions
from designate.central import rpcapi as central_rpcapi
from designate.context import DesignateContext
from designate import exceptions
from designate.objects import Record
from designate.objects import RecordList
from designate.objects import RecordSet

View File

@ -21,8 +21,8 @@ from oslo_config import cfg
from oslo_log import log as logging
import designate.conf
from designate.plugin import DriverPlugin
from designate import objects
from designate.plugin import DriverPlugin
from designate import rpc
LOG = logging.getLogger(__name__)

View File

@ -11,12 +11,12 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from urllib import parse
from oslo_config import cfg
from urllib import parse
from designate import exceptions
from designate.objects.adapters import base
from designate.objects import base as ovoobj_base
from designate import exceptions
cfg.CONF.import_opt('api_base_uri', 'designate.api', group='service:api')

View File

@ -11,9 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate.objects.adapters.api_v2 import base
class BlacklistAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,9 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate.objects.adapters.api_v2 import base
class FloatingIPAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,9 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate.objects.adapters.api_v2 import base
class PoolAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,8 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate.objects.adapters.api_v2 import base
class PoolAttributeAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,9 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate.objects.adapters.api_v2 import base
class PoolNsRecordAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,9 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate.objects.adapters.api_v2 import base
class QuotaAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,9 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate.objects.adapters.api_v2 import base
class RecordAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,10 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate import exceptions
from designate import objects
from designate.objects.adapters.api_v2 import base
class RecordSetAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,9 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate.objects.adapters.api_v2 import base
class ServiceStatusAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,9 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate.objects.adapters.api_v2 import base
class TldAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,9 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate.objects.adapters.api_v2 import base
class TsigKeyAPIv2Adapter(base.APIv2Adapter):

View File

@ -13,8 +13,8 @@
# under the License.
import re
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate.objects.adapters.api_v2 import base
class NotSpecifiedSential:

View File

@ -11,9 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate.objects.adapters.api_v2 import base
class ZoneAPIv2Adapter(base.APIv2Adapter):

View File

@ -11,8 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate.objects.adapters.api_v2 import base
class ZoneAttributeAPIv2Adapter(base.APIv2Adapter):

View File

@ -13,9 +13,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate.objects.adapters.api_v2 import base
class ZoneExportAPIv2Adapter(base.APIv2Adapter):

View File

@ -13,9 +13,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate.objects.adapters.api_v2 import base
class ZoneImportAPIv2Adapter(base.APIv2Adapter):

View File

@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate.objects.adapters.api_v2 import base
from designate import utils

View File

@ -11,9 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.adapters.api_v2 import base
from designate import objects
from designate.objects.adapters.api_v2 import base
class ZoneTransferAcceptAPIv2Adapter(base.APIv2Adapter):

Some files were not shown because too many files have changed in this diff Show More