Merge "Fixed all typos in comments"

This commit is contained in:
Jenkins 2017-08-18 09:01:34 +00:00 committed by Gerrit Code Review
commit c77216965d
13 changed files with 16 additions and 16 deletions

View File

@ -18,8 +18,8 @@ CD_TYPES = {
"iso", # "Raw" format containing ISO bytes.
}
CD_LOCATIONS = {
# Look into optical units devices. Only an ISO format could
# be used here (vfat ignored).
# Look into optical devices. Only an ISO format could be
# used here (vfat ignored).
"cdrom",
# Search through physical disks for raw ISO content or vfat filesystems
# containing configuration drive's content.

View File

@ -45,7 +45,7 @@ class CertificateVerifyFailed(ServiceException):
"""The received certificate is not valid.
In order to avoid the current exception the validation of the SSL
In order to avoid the current exception, the validation of the SSL
certificate should be disabled for the metadata provider. In order
to do that the `https_allow_insecure` config option should be set.
"""

View File

@ -145,7 +145,7 @@ class InitManager(object):
# handlers being shared between the current process and the new one,
# any logging handlers for the current logger object will be closed.
# By doing so, the next time the logger is called, it will be created
# under the newly updated proccess, thus avoiding any issues or
# under the newly updated process, thus avoiding any issues or
# conflicts where the logging can't be done.
logging.release_logging_handlers("cloudbaseinit")

View File

@ -435,7 +435,7 @@ class AzureService(base.BaseHTTPMetadataService):
raise
def get_decoded_user_data(self):
# Don't decode to retain compability
# Don't decode to retain compatibility
return self.get_user_data()
def get_content(self, name):

View File

@ -227,7 +227,7 @@ class BaseMetadataService(object):
class BaseHTTPMetadataService(BaseMetadataService):
"""Contract class for metadata services that are ussing HTTP(S)."""
"""Contract class for metadata services that are using HTTP(S)."""
def __init__(self, base_url, https_allow_insecure=False,
https_ca_bundle=None):
@ -280,7 +280,7 @@ class BaseHTTPMetadataService(BaseMetadataService):
return response.content
def _get_data(self, path):
"""Getting the required information ussing metadata service."""
"""Getting the required information using metadata service."""
try:
response = self._http_request(path)
except requests.HTTPError as exc:

View File

@ -81,7 +81,7 @@ class CloudStack(base.BaseHTTPMetadataService):
return True
def load(self):
"""Obtain all the required informations."""
"""Obtain all the required information."""
super(CloudStack, self).load()
if self._test_api(CONF.cloudstack.metadata_base_url):
return True
@ -219,7 +219,7 @@ class CloudStack(base.BaseHTTPMetadataService):
"Password Server.")
def get_admin_password(self):
"""Get the admin pasword from the Password Server.
"""Get the admin password from the Password Server.
.. note:
The password is deleted from the Password Server after the first

View File

@ -609,7 +609,7 @@ class WindowsUtils(base.BaseOSUtils):
:param token: Represents the user logon session token, resulted from
running the 'create_user_logon_session' method.
:param args: The arguments with which the process will be runned with.
:param args: The arguments with which the process will be run with.
:param wait: Specifies if it's needed to wait for the process
handler to finish up running all the operations
on the process object.

View File

@ -133,7 +133,7 @@ class BaseCommand(object):
The parameter *target_path* represents the file which will be
executed. The optional parameter *cleanup* can be a callable,
which will be called after executing a command, no matter if the
execution was succesful or not.
execution was successful or not.
"""
self._target_path = target_path

View File

@ -27,7 +27,7 @@ from cloudbaseinit.utils import network
LOG = oslo_logging.getLogger(__name__)
# Mandatory network details are marked with True. And
# if the key is a tuple, then at least one field must exists.
# if the key is a tuple, then at least one field must exist.
NET_REQUIRE = {
("name", "mac"): True,
("address", "address6"): True,

View File

@ -93,7 +93,7 @@ def _write_file(path, content, permissions=DEFAULT_PERMISSIONS,
path: The absolute path to the location on the filesystem where
the file should be written.
content: The content that should be placed in the file.
permissions:The octal permissions set that should be given for
permissions: The octal permissions set that should be given for
this file.
open_mode: The open mode used when opening the file.
"""

View File

@ -26,7 +26,7 @@ class CreateUserPlugin(createuser.BaseCreateUserPlugin):
def _create_user_logon(user_name, password, osutils):
try:
# Create a user profile in order for other plugins
# to access the user home, etc
# to access the user home, etc.
token = osutils.create_user_logon_session(user_name,
password,
True)

View File

@ -189,7 +189,7 @@ kernel32.FileTimeToSystemTime.argtypes = [ctypes.POINTER(FILETIME),
ctypes.POINTER(SYSTEMTIME)]
FileTimeToSystemTime = kernel32.FileTimeToSystemTime
# TODO(alexpilotti): this is not a CryptoAPI funtion, putting it in a separate
# TODO(alexpilotti): this is not a CryptoAPI function, putting it in a separate
# module would be more correct
kernel32.GetLastError.restype = wintypes.DWORD
kernel32.GetLastError.argtypes = []

View File

@ -28,7 +28,7 @@ LOG = oslo_logging.getLogger(__name__)
def _read_url(url):
# Disable certificate verification on Python 2 as
# requests's CA list is incomplete. Works fine on Python3.
# requests' CA list is incomplete. Works fine on Python3.
req = requests.get(url, verify=six.PY3,
headers={'User-Agent': _PRODUCT_NAME})
req.raise_for_status()