More spelling fixes inside of nova

Change-Id: I79daf7519c99cc363ac7175c85912298f273da8a
This commit is contained in:
Joe Gordon
2011-11-09 13:01:35 -08:00
parent af2ff0bfae
commit 79057c5aac
9 changed files with 14 additions and 14 deletions

View File

@@ -114,7 +114,7 @@ def _match_query(query, attrs):
"""Match an ldap query to an attribute dictionary.
The characters &, |, and ! are supported in the query. No syntax checking
is performed, so malformed querys will not work correctly.
is performed, so malformed queries will not work correctly.
"""
# cut off the parentheses
inner = query[1:-1]
@@ -171,7 +171,7 @@ def _match(key, value, attrs):
def _subs(value):
"""Returns a list of subclass strings.
The strings represent the ldap objectclass plus any subclasses that
The strings represent the ldap object class plus any subclasses that
inherit from it. Fakeldap doesn't know about the ldap object structure,
so subclasses need to be defined manually in the dictionary below.

View File

@@ -99,7 +99,7 @@ class AuthBase(object):
This method will return the id of the object if the object
is of this class, otherwise it will return the original object.
This allows methods to accept objects or ids as paramaters.
This allows methods to accept objects or ids as parameters.
"""
if isinstance(obj, cls):
return obj.id
@@ -692,7 +692,7 @@ class AuthManager(object):
@type admin: bool
@param admin: Whether to set the admin flag. The admin flag gives
superuser status regardless of roles specifed for the user.
superuser status regardless of roles specified for the user.
@type create_project: bool
@param: Whether to create a project for the user with the same name.

View File

@@ -16,7 +16,7 @@
# License for the specific language governing permissions and limitations
# under the License.
"""Based a bit on the carrot.backeds.queue backend... but a lot better."""
"""Based a bit on the carrot.backends.queue backend... but a lot better."""
import Queue as queue

View File

@@ -131,7 +131,7 @@ def _get_log_file_path(binary=None):
class NovaLogger(logging.Logger):
"""NovaLogger manages request context and formatting.
This becomes the class that is instanciated by logging.getLogger.
This becomes the class that is instantiated by logging.getLogger.
"""
@@ -323,7 +323,7 @@ logging.setLoggerClass(NovaLogger)
def audit(msg, *args, **kwargs):
"""Shortcut for logging to root log with sevrity 'AUDIT'."""
"""Shortcut for logging to root log with severity 'AUDIT'."""
logging.root.log(AUDIT, msg, *args, **kwargs)

View File

@@ -53,7 +53,7 @@ def _get_drivers():
def notify(message):
"""Passes notification to mulitple notifiers in a list."""
"""Passes notification to multiple notifiers in a list."""
for driver in _get_drivers():
try:
driver.notify(message)

View File

@@ -13,10 +13,10 @@ flags.DEFINE_integer('rpc_conn_pool_size', 30,
class RemoteError(exception.NovaException):
"""Signifies that a remote class has raised an exception.
Containes a string representation of the type of the original exception,
Contains a string representation of the type of the original exception,
the value of the original exception, and the traceback. These are
sent to the parent as a joined string so printing the exception
contains all of the relevent info.
contains all of the relevant info.
"""
message = _("Remote error: %(exc_type)s %(value)s\n%(traceback)s.")

View File

@@ -274,7 +274,7 @@ class AdapterConsumer(Consumer):
@exception.wrap_exception()
def _process_data(self, msg_id, ctxt, method, args):
"""Thread that maigcally looks for a method on the proxy
"""Thread that magically looks for a method on the proxy
object and calls it.
"""

View File

@@ -319,7 +319,7 @@ class Connection(object):
self.reconnect()
def reconnect(self):
"""Handles reconnecting and re-estblishing queues"""
"""Handles reconnecting and re-establishing queues"""
if self.connection:
try:
self.connection.close()
@@ -609,7 +609,7 @@ class ProxyCallback(object):
@exception.wrap_exception()
def _process_data(self, ctxt, method, args):
"""Thread that maigcally looks for a method on the proxy
"""Thread that magically looks for a method on the proxy
object and calls it.
"""

View File

@@ -60,7 +60,7 @@ def get_host_list(context):
def get_zone_list(context):
"""Return a list of zones assoicated with this zone."""
"""Return a list of zones associated with this zone."""
items = _call_scheduler('get_zone_list', context)
for item in items:
item['api_url'] = item['api_url'].replace('\\/', '/')