diff options
| author | Joe Gordon <jogo@cloudscaling.com> | 2011-11-09 11:02:48 -0800 |
|---|---|---|
| committer | Joe Gordon <jogo@cloudscaling.com> | 2011-11-09 11:02:48 -0800 |
| commit | d8df06342ca5c2336976ec3b50f39706ae409023 (patch) | |
| tree | 04c05f8183d4c24df3b103953797b7f98e4a7103 /nova/api | |
| parent | 00861098508fc675ba2d90a5c34fec152ddf5c3d (diff) | |
Spelling fixes in nova/api comments
Change-Id: Iaaf2f6b191110ff76f00f4d2ac1bcd9fa33110af
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/direct.py | 8 | ||||
| -rw-r--r-- | nova/api/ec2/__init__.py | 2 | ||||
| -rw-r--r-- | nova/api/ec2/ec2utils.py | 4 | ||||
| -rw-r--r-- | nova/api/manager.py | 2 | ||||
| -rw-r--r-- | nova/api/openstack/common.py | 2 | ||||
| -rw-r--r-- | nova/api/openstack/limits.py | 2 | ||||
| -rw-r--r-- | nova/api/openstack/servers.py | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/nova/api/direct.py b/nova/api/direct.py index fdd2943d2..5e6826f82 100644 --- a/nova/api/direct.py +++ b/nova/api/direct.py @@ -254,10 +254,10 @@ class Reflection(object): class ServiceWrapper(object): - """Wrapper to dynamically povide a WSGI controller for arbitrary objects. + """Wrapper to dynamically provide a WSGI controller for arbitrary objects. With lightweight introspection allows public methods on the object to - be accesed via simple WSGI routing and parameters and serializes the + be accessed via simple WSGI routing and parameters and serializes the return values. Automatically used be nova.api.direct.Router to wrap registered instances. @@ -297,14 +297,14 @@ class ServiceWrapper(object): }[content_type] return serializer.serialize(result) except Exception, e: - raise exception.Error(_("Returned non-serializable type: %s") + raise exception.Error(_("Returned non-serializeable type: %s") % result) class Limited(object): __notdoc = """Limit the available methods on a given object. - (Not a docstring so that the docstring can be conditionally overriden.) + (Not a docstring so that the docstring can be conditionally overridden.) Useful when defining a public API that only exposes a subset of an internal API. diff --git a/nova/api/ec2/__init__.py b/nova/api/ec2/__init__.py index fde1377db..ebb8c7bff 100644 --- a/nova/api/ec2/__init__.py +++ b/nova/api/ec2/__init__.py @@ -95,7 +95,7 @@ class Lockout(wsgi.Middleware): z = lockout_attempts flag Uses memcached if lockout_memcached_servers flag is set, otherwise it - uses a very simple in-proccess cache. Due to the simplicity of + uses a very simple in-process cache. Due to the simplicity of the implementation, the timeout window is started with the first failed request, so it will block if there are x failed logins within that period. diff --git a/nova/api/ec2/ec2utils.py b/nova/api/ec2/ec2utils.py index 514dabe48..ee68edbd7 100644 --- a/nova/api/ec2/ec2utils.py +++ b/nova/api/ec2/ec2utils.py @@ -63,7 +63,7 @@ def _try_convert(value): 'True' True case insensitive 'False' False case insensitive '0', '-0' 0 - 0xN, -0xN int from hex (postitive) (N is any number) + 0xN, -0xN int from hex (positive) (N is any number) 0bN, -0bN int from binary (positive) (N is any number) * try conversion to int, float, complex, fallback value @@ -108,7 +108,7 @@ def _try_convert(value): def dict_from_dotted_str(items): """parse multi dot-separated argument into dict. - EBS boot uses multi dot-separeted arguments like + EBS boot uses multi dot-separated arguments like BlockDeviceMapping.1.DeviceName=snap-id Convert the above into {'block_device_mapping': {'1': {'device_name': snap-id}}} diff --git a/nova/api/manager.py b/nova/api/manager.py index b3fcf9352..9cb364e2d 100644 --- a/nova/api/manager.py +++ b/nova/api/manager.py @@ -36,7 +36,7 @@ class EC2Manager(manager.Manager): def init_host(self): """Perform any initialization. - Currently, we only add an iptables filter rule for the metadta + Currently, we only add an iptables filter rule for the metadata service. """ self.network_driver.metadata_accept() diff --git a/nova/api/openstack/common.py b/nova/api/openstack/common.py index 9db50d790..3b82d358f 100644 --- a/nova/api/openstack/common.py +++ b/nova/api/openstack/common.py @@ -288,7 +288,7 @@ def get_networks_for_instance(context, instance): """Returns a prepared nw_info list for passing into the view builders - We end up with a datastructure like: + We end up with a data structure like: {'public': {'ips': [{'addr': '10.0.0.1', 'version': 4}, {'addr': '2001::1', 'version': 6}], 'floating_ips': [{'addr': '172.16.0.1', 'version': 4}, diff --git a/nova/api/openstack/limits.py b/nova/api/openstack/limits.py index 0b549de2e..56e839526 100644 --- a/nova/api/openstack/limits.py +++ b/nova/api/openstack/limits.py @@ -109,7 +109,7 @@ def create_resource(): class Limit(object): """ - Stores information about a limit for HTTP requets. + Stores information about a limit for HTTP requests. """ UNITS = { diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py index 2a1424e46..fba94eabe 100644 --- a/nova/api/openstack/servers.py +++ b/nova/api/openstack/servers.py @@ -87,7 +87,7 @@ class Controller(object): def _get_block_device_mapping(self, data): """Get block_device_mapping from 'server' dictionary. - Overidden by volumes controller. + Overridden by volumes controller. """ return None |
