Merge "Fix typo in novaclient"

This commit is contained in:
Jenkins 2013-11-22 21:25:07 +00:00 committed by Gerrit Code Review
commit 915b0a48df
3 changed files with 5 additions and 5 deletions

View File

@ -110,7 +110,7 @@ class Manager(utils.HookableMixin):
try:
os.makedirs(cache_dir, 0o755)
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 already exists. Either way, don't
# fail.
@ -125,7 +125,7 @@ class Manager(utils.HookableMixin):
try:
setattr(self, cache_attr, open(path, mode))
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.
pass
@ -290,7 +290,7 @@ class BootingManagerWithFind(ManagerWithFind):
:param meta: A dict of arbitrary key/value metadata to store for this
server. A maximum of five entries is allowed, and both
keys and values must be 255 characters or less.
:param files: A dict of files to overrwrite on the server upon boot.
:param files: A dict of files to overwrite on the server upon boot.
Keys are file names (i.e. ``/etc/passwd``) and values
are the file contents (either as a string or as a
file-like object). A maximum of five entries is allowed,

View File

@ -458,7 +458,7 @@ class OpenStackComputeShell(object):
def _find_actions(self, subparsers, actions_module):
for attr in (a for a in dir(actions_module) if a.startswith('do_')):
# I prefer to be hypen-separated instead of underscores.
# I prefer to be hyphen-separated instead of underscores.
command = attr[3:].replace('_', '-')
callback = getattr(actions_module, attr)
desc = callback.__doc__ or ''

View File

@ -42,7 +42,7 @@ def add_arg(f, *args, **kwargs):
# NOTE(sirp): avoid dups that can occur when the module is shared across
# tests.
if (args, kwargs) not in f.arguments:
# Because of the sematics of decorator composition if we just append
# Because of the semantics of decorator composition if we just append
# to the options list positional options will appear to be backwards.
f.arguments.insert(0, (args, kwargs))