diff --git a/novaclient/base.py b/novaclient/base.py index 45bea18d8..38434c282 100644 --- a/novaclient/base.py +++ b/novaclient/base.py @@ -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, diff --git a/novaclient/shell.py b/novaclient/shell.py index e70c1dc1c..ca0770e38 100644 --- a/novaclient/shell.py +++ b/novaclient/shell.py @@ -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 '' diff --git a/novaclient/utils.py b/novaclient/utils.py index 73dfbb112..f013726ee 100644 --- a/novaclient/utils.py +++ b/novaclient/utils.py @@ -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))