summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Rivero <rafael@cloudscaling.com>2014-09-24 15:26:17 -0700
committerRafael Rivero <rafael@cloudscaling.com>2014-09-24 15:26:52 -0700
commit57c9682e1c930286ae57b784e4737127a2834a40 (patch)
treeba5ea6bbe4c81545a40a143d8288e08e6692f5b8
parent9abc87af3b643a4f92c7cda34cc2fb96893c71bf (diff)
downloaddesignate-57c9682e1c930286ae57b784e4737127a2834a40.tar.gz
Fixes docstring typos
Fixes several docstring typos. Change-Id: I4330792c1d6945bd1ba624f8d07d43c7b791be31
-rw-r--r--contrib/tempest/dns_clients/json/domains_client.py2
-rw-r--r--contrib/tempest/dns_clients/json/records_client.py2
-rw-r--r--designate/api/v2/views/base.py2
-rw-r--r--designate/hacking/checks.py4
-rw-r--r--designate/mdns/middleware.py2
-rw-r--r--designate/objects/base.py2
6 files changed, 7 insertions, 7 deletions
diff --git a/contrib/tempest/dns_clients/json/domains_client.py b/contrib/tempest/dns_clients/json/domains_client.py
index b2490052..668e1060 100644
--- a/contrib/tempest/dns_clients/json/domains_client.py
+++ b/contrib/tempest/dns_clients/json/domains_client.py
@@ -49,7 +49,7 @@ class DomainsClientJSON(rest_client.RestClient):
return resp, body
def create_domain(self, name, email, **kwargs):
- """Createa a domain."""
+ """Creates a domain."""
post_body = {
"name": name,
"email": email
diff --git a/contrib/tempest/dns_clients/json/records_client.py b/contrib/tempest/dns_clients/json/records_client.py
index 70fd087b..2ca6a233 100644
--- a/contrib/tempest/dns_clients/json/records_client.py
+++ b/contrib/tempest/dns_clients/json/records_client.py
@@ -51,7 +51,7 @@ class RecordsClientJSON(rest_client.RestClient):
return resp, body
def create_record(self, domain_id, name, type, data, **kwargs):
- """Createa a record."""
+ """Creates a record."""
post_body = {
"name": name,
"type": type,
diff --git a/designate/api/v2/views/base.py b/designate/api/v2/views/base.py
index 40c9f265..65364526 100644
--- a/designate/api/v2/views/base.py
+++ b/designate/api/v2/views/base.py
@@ -27,7 +27,7 @@ CONF = cfg.CONF
class BaseView(object):
"""
- The Views are responsible for coverting to/from the "intenal" and
+ The Views are responsible for coverting to/from the "internal" and
"external" representations of collections and resources. This includes
adding "links" and adding/removing any other wrappers returned/received
as part of the API call.
diff --git a/designate/hacking/checks.py b/designate/hacking/checks.py
index 952a371a..8995f2af 100644
--- a/designate/hacking/checks.py
+++ b/designate/hacking/checks.py
@@ -82,8 +82,8 @@ def no_import_graduated_oslo_libraries(logical_line, filename):
After a library graduates from oslo-incubator, as we make the switch, we
should ensure we don't continue to use the oslo-incubator versions.
- In many cases, it's not possible to immediatly remove the code from the
- openstack/common folder due to dependancy issues.
+ In many cases, it's not possible to immediately remove the code from the
+ openstack/common folder due to dependency issues.
"""
# We can't modify oslo-incubator code, so ignore it here.
if "designate/openstack/common" in filename:
diff --git a/designate/mdns/middleware.py b/designate/mdns/middleware.py
index ee6d52b5..67ebf17c 100644
--- a/designate/mdns/middleware.py
+++ b/designate/mdns/middleware.py
@@ -48,7 +48,7 @@ class ContextMiddleware(Middleware):
request
This will be replaced with a piece of middleware which generates, from
- a TSIG signed request, an approperiate Request Context.
+ a TSIG signed request, an appropriate Request Context.
"""
def process_request(self, request):
ctxt = context.DesignateContext.get_admin_context(all_tenants=True)
diff --git a/designate/objects/base.py b/designate/objects/base.py
index 2b97bdf7..c20f8cf1 100644
--- a/designate/objects/base.py
+++ b/designate/objects/base.py
@@ -364,7 +364,7 @@ class PersistentObjectMixin(object):
"""
Mixin class for Persistent objects.
- This adds the fields that we use in common for all persisent objects.
+ This adds the fields that we use in common for all persistent objects.
"""
FIELDS = ['id', 'created_at', 'updated_at', 'version']