From: huangtianhua Date: Fri, 29 Nov 2013 04:21:48 +0000 (+0800) Subject: Fix typo in cinder X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=d02ae9225d8ba4f7373ecced49c2d7c1cd17a732;p=openstack-build%2Fcinder-build.git Fix typo in cinder tranfers -> transfers recurse -> recursive satisified -> satisfied There are other typos will be fixed in Oslo. The commit is: https://review.openstack.org/#/c/59319/ Change-Id: I6fc2be0414962f456a827d294e258637af665524 Closes-Bug: #1255908 --- diff --git a/cinder/api/contrib/volume_transfer.py b/cinder/api/contrib/volume_transfer.py index 5cf4b5e09..88699277a 100644 --- a/cinder/api/contrib/volume_transfer.py +++ b/cinder/api/contrib/volume_transfer.py @@ -124,7 +124,7 @@ class VolumeTransferController(wsgi.Controller): @wsgi.serializers(xml=TransfersTemplate) def detail(self, req): - """Returns a detailed list of tranfers.""" + """Returns a detailed list of transfers.""" return self._get_transfers(req, is_detail=True) def _get_transfers(self, req, is_detail): diff --git a/cinder/api/xmlutil.py b/cinder/api/xmlutil.py index 4b78270a9..a64e91f9f 100644 --- a/cinder/api/xmlutil.py +++ b/cinder/api/xmlutil.py @@ -599,7 +599,7 @@ class Template(object): # First step, render the element elems = siblings[0].render(parent, obj, siblings[1:], nsmap) - # Now, recurse to all child elements + # Now, traverse all child elements seen = set() for idx, sibling in enumerate(siblings): for child in sibling: @@ -614,7 +614,7 @@ class Template(object): if child.tag in sib: nieces.append(sib[child.tag]) - # Now we recurse for every data element + # Now call this function for all data elements recursively for elem, datum in elems: self._serialize(elem, datum, nieces) diff --git a/cinder/taskflow/exceptions.py b/cinder/taskflow/exceptions.py index d50e30d93..62deadd0c 100644 --- a/cinder/taskflow/exceptions.py +++ b/cinder/taskflow/exceptions.py @@ -60,7 +60,7 @@ class JobNotFound(TaskFlowException): class MissingDependencies(InvalidStateException): - """Raised when a task has dependencies that can not be satisified.""" + """Raised when a task has dependencies that can not be satisfied.""" message = ("%(task)s requires %(requirements)s but no other task produces" " said requirements")