Fixed misspellings of common words

Fixed misspelling of common words found by the 'misspellings' tool.

Closes-Bug: #1257531
Change-Id: Ic6bedbce3a242d6e1340ecc442d29605af8be9a4
This commit is contained in:
Nikhil Manchanda
2013-12-03 15:49:16 -08:00
parent 68f8ae0d9c
commit c1e46dcd00
4 changed files with 7 additions and 7 deletions

View File

@@ -112,7 +112,7 @@ class Manager(utils.HookableMixin):
try: try:
os.makedirs(cache_dir, 0o755) os.makedirs(cache_dir, 0o755)
except OSError: except OSError:
# NOTE(kiall): This is typicaly either permission denied while # NOTE(kiall): This is typically either permission denied while
# attempting to create the directory, or the directory # attempting to create the directory, or the directory
# already exists. Either way, don't fail. # already exists. Either way, don't fail.
pass pass
@@ -126,7 +126,7 @@ class Manager(utils.HookableMixin):
try: try:
setattr(self, cache_attr, open(path, mode)) setattr(self, cache_attr, open(path, mode))
except IOError: except IOError:
# NOTE(kiall): This is typicaly a permission denied while # NOTE(kiall): This is typically a permission denied while
# attempting to write the cache file. # attempting to write the cache file.
pass pass

View File

@@ -106,7 +106,7 @@ class Manager(utils.HookableMixin):
try: try:
os.makedirs(cache_dir, 0o755) os.makedirs(cache_dir, 0o755)
except OSError: except OSError:
# NOTE(kiall): This is typicaly either permission denied while # NOTE(kiall): This is typically either permission denied while
# attempting to create the directory, or the directory # attempting to create the directory, or the directory
# already exists. Either way, don't fail. # already exists. Either way, don't fail.
pass pass
@@ -120,7 +120,7 @@ class Manager(utils.HookableMixin):
try: try:
setattr(self, cache_attr, open(path, mode)) setattr(self, cache_attr, open(path, mode))
except IOError: except IOError:
# NOTE(kiall): This is typicaly a permission denied while # NOTE(kiall): This is typically a permission denied while
# attempting to write the cache file. # attempting to write the cache file.
pass pass

View File

@@ -151,7 +151,7 @@ def element_to_dict(element):
def standardize_json_lists(json_dict): def standardize_json_lists(json_dict):
""" """
In XML, we might see something like {'instances':{'instances':[...]}}, In XML, we might see something like {'instances':{'instances':[...]}},
which we must change to just {'instances':[...]} to be compatable with which we must change to just {'instances':[...]} to be compatible with
the true JSON format. the true JSON format.
If any items are dictionaries with only one item which is a list, If any items are dictionaries with only one item which is a list,
@@ -238,7 +238,7 @@ def populate_element_from_dict(element, dict):
def modify_response_types(value, type_translator): def modify_response_types(value, type_translator):
""" """
This will convert some string in response dictionary to ints or bool This will convert some string in response dictionary to ints or bool
so that our respose is compatiable with code expecting JSON style responses so that our respose is compatible with code expecting JSON style responses
""" """
if isinstance(value, str): if isinstance(value, str):
if value == 'True': if value == 'True':

View File

@@ -75,7 +75,7 @@ def load_plugin(auth_system):
def load_plugin_from_args(args): def load_plugin_from_args(args):
"""Load requred plugin and populate it with options. """Load required plugin and populate it with options.
Try to guess auth system if it is not specified. Systems are tried in Try to guess auth system if it is not specified. Systems are tried in
alphabetical order. alphabetical order.