From 8b9d948f7ae38885a31999d4b4e1acfae6c5c81c Mon Sep 17 00:00:00 2001 From: Takashi NATSUME Date: Thu, 3 Sep 2015 18:31:33 +0900 Subject: [PATCH] Fix typos in comments paramater => parameter accross => across targetted => targeted sucessful => successful Change-Id: I8319d713946317de3e6e385034ffffcc83e1b3a8 --- designate/api/v1/__init__.py | 2 +- designate/backend/base.py | 2 +- designate/backend/impl_bind9.py | 2 +- designate/backend/impl_nsd4.py | 2 +- designate/hacking/checks.py | 4 ++-- designate/pool_manager/service.py | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/designate/api/v1/__init__.py b/designate/api/v1/__init__.py index c6ccdae96..812d6767f 100644 --- a/designate/api/v1/__init__.py +++ b/designate/api/v1/__init__.py @@ -123,7 +123,7 @@ def factory(global_config, **local_conf): class UUIDConverter(BaseConverter): - """Validates UUID URL paramaters""" + """Validates UUID URL parameters""" def to_python(self, value): if not utils.is_uuid_like(value): diff --git a/designate/backend/base.py b/designate/backend/base.py index 34f15e655..dd9ec19cf 100644 --- a/designate/backend/base.py +++ b/designate/backend/base.py @@ -45,7 +45,7 @@ class Backend(DriverPlugin): self.host = self.options.get('host', '127.0.0.1') self.port = int(self.options.get('port', 53)) - # TODO(kiall): Context's should never be shared accross requests. + # TODO(kiall): Context's should never be shared across requests. self.admin_context = DesignateContext.get_admin_context() self.admin_context.all_tenants = True diff --git a/designate/backend/impl_bind9.py b/designate/backend/impl_bind9.py index 880867cc8..3a35a7031 100644 --- a/designate/backend/impl_bind9.py +++ b/designate/backend/impl_bind9.py @@ -50,7 +50,7 @@ class Bind9Backend(base.Backend): port = master['port'] masters.append('%s port %s' % (host, port)) - # Ensure different MiniDNS instances are targetted for AXFRs + # Ensure different MiniDNS instances are targeted for AXFRs random.shuffle(masters) rndc_op = [ diff --git a/designate/backend/impl_nsd4.py b/designate/backend/impl_nsd4.py index ec69f5eb2..f43c8a13c 100644 --- a/designate/backend/impl_nsd4.py +++ b/designate/backend/impl_nsd4.py @@ -83,7 +83,7 @@ class NSD4Backend(base.Backend): port = master['port'] masters.append('%s port %s' % (host, port)) - # Ensure different MiniDNS instances are targetted for AXFRs + # Ensure different MiniDNS instances are targeted for AXFRs random.shuffle(masters) command = 'addzone %s %s' % (domain['name'], self.pattern) diff --git a/designate/hacking/checks.py b/designate/hacking/checks.py index 4b362d535..4aed62c27 100644 --- a/designate/hacking/checks.py +++ b/designate/hacking/checks.py @@ -17,7 +17,7 @@ import re import pep8 -# D701: Default paramater value is a mutable type +# D701: Default parameter value is a mutable type # D702: Log messages require translation # D703: Found use of _() without explicit import of _! # D704: Found import of %s. This oslo library has been graduated! @@ -53,7 +53,7 @@ def mutable_default_arguments(logical_line, physical_line, filename): return if mutable_default_argument_check.match(logical_line): - yield (0, "D701: Default paramater value is a mutable type") + yield (0, "D701: Default parameter value is a mutable type") def validate_log_translations(logical_line, physical_line, filename): diff --git a/designate/pool_manager/service.py b/designate/pool_manager/service.py index 876be2604..fa5779e08 100644 --- a/designate/pool_manager/service.py +++ b/designate/pool_manager/service.py @@ -396,7 +396,7 @@ class Service(service.RPCService, coordination.CoordinationMixin, # TODO(kiall): We should monitor that the Domain is actually deleted # correctly on each of the nameservers, rather than - # assuming a sucessful delete-on-target is OK as we have + # assuming a successful delete-on-target is OK as we have # in the past. if self._exceed_or_meet_threshold( results.count(True), MAXIMUM_THRESHOLD):