Fixed all typos in comments
Change-Id: I37ae75a438f6fd326101c7b8a855c1f39dd2f644
This commit is contained in:
parent
b5ee321a09
commit
c6e3c9ef63
|
@ -33,7 +33,7 @@ class ACLUtils(object):
|
|||
def get_named_security_info(self, obj_name, obj_type, security_info_flags):
|
||||
"""Retrieve object security information.
|
||||
|
||||
:param security_info_flags: specifies which informations will
|
||||
:param security_info_flags: specifies which information will
|
||||
be retrieved.
|
||||
:param ret_val: dict, containing pointers to the requested structures.
|
||||
Note that the returned security descriptor will have
|
||||
|
@ -68,7 +68,7 @@ class ACLUtils(object):
|
|||
|
||||
def set_entries_in_acl(self, entry_count, p_explicit_entry_list,
|
||||
p_old_acl):
|
||||
"""Merge new ACEs into an existing ACL, returing a new ACL."""
|
||||
"""Merge new ACEs into an existing ACL, returning a new ACL."""
|
||||
pp_new_acl = self._get_void_pp()
|
||||
|
||||
self._win32_utils.run_and_check_output(
|
||||
|
|
|
@ -148,7 +148,7 @@ class ClusApiUtils(object):
|
|||
This only applies to move operations requested by
|
||||
MoveClusterGroup(Ex), thus it will not apply to fail overs.
|
||||
|
||||
return: True if the cancel request completed succesfuly,
|
||||
return: True if the cancel request completed successfuly,
|
||||
False if it's still in progress.
|
||||
"""
|
||||
ret_val = self._run_and_check_output(
|
||||
|
|
|
@ -449,7 +449,7 @@ class ClusterUtils(baseutils.BaseUtils):
|
|||
|
||||
This method will poll the last _WMI_EVENT_CHECK_INTERVAL + 1
|
||||
seconds for new events and listens for _WMI_EVENT_TIMEOUT_MS
|
||||
miliseconds, since listening is a thread blocking action.
|
||||
milliseconds, since listening is a thread blocking action.
|
||||
|
||||
Any event object caught will then be processed.
|
||||
"""
|
||||
|
@ -461,7 +461,7 @@ class ClusterUtils(baseutils.BaseUtils):
|
|||
vm_name = None
|
||||
new_host = None
|
||||
try:
|
||||
# wait for new event for _WMI_EVENT_TIMEOUT_MS miliseconds.
|
||||
# wait for new event for _WMI_EVENT_TIMEOUT_MS milliseconds.
|
||||
if patcher.is_monkey_patched('thread'):
|
||||
wmi_object = tpool.execute(self._watcher,
|
||||
event_timeout_ms)
|
||||
|
|
|
@ -42,7 +42,7 @@ from os_win.utils import pathutils
|
|||
LOG = logging.getLogger(__name__)
|
||||
|
||||
# TODO(claudiub): remove the is_planned_vm argument from methods once it is not
|
||||
# used anymore.
|
||||
# used anymore.
|
||||
|
||||
|
||||
class VMUtils(baseutils.BaseUtilsVirt):
|
||||
|
@ -1093,7 +1093,7 @@ class VMUtils(baseutils.BaseUtilsVirt):
|
|||
|
||||
# NOTE(abalutoiu): new_boot_order will contain ROOT uppercase
|
||||
# in the device paths while old_boot_order will contain root
|
||||
# lowercase, which will cause the tupple addition result to contain
|
||||
# lowercase, which will cause the tuple addition result to contain
|
||||
# each device path twice because of the root lowercase and uppercase.
|
||||
# Forcing all the device paths to uppercase fixes the issue.
|
||||
new_boot_order = [x.upper() for x in new_boot_order]
|
||||
|
|
|
@ -85,7 +85,7 @@ class DNSUtils(baseutils.BaseUtils):
|
|||
1 = Secondary zone, MUST include at least one master IP
|
||||
2 = Stub zone, MUST include at least one master IP
|
||||
3 = Zone forwarder, MUST include at least one master IP
|
||||
:param ds_integrated: Only Primary zones cand be stored in AD
|
||||
:param ds_integrated: Only Primary zones can be stored in AD
|
||||
True = the zone data is stored in the Active Directory
|
||||
False = the data zone is stored in files
|
||||
:param data_file_name(Optional): name of the data file associated
|
||||
|
@ -136,12 +136,12 @@ class DNSUtils(baseutils.BaseUtils):
|
|||
2 = Notify the specified servers
|
||||
:param reverse: Indicates whether the Zone is reverse (TRUE)
|
||||
or forward (FALSE).
|
||||
:param securese_condaries:
|
||||
:param secure_secondaries:
|
||||
0 = Allowed to Any host
|
||||
1 = Only to the Servers listed on the Name Servers tab
|
||||
2 = To the following servers (destination servers IP addresses
|
||||
are specified in SecondaryServers value)
|
||||
3 = Zone tranfers not allowed
|
||||
3 = Zone transfers not allowed
|
||||
"""
|
||||
|
||||
zone = self._get_zone(zone_name, ignore_missing=False)
|
||||
|
|
|
@ -130,7 +130,7 @@ class HostUtils(baseutils.BaseUtilsVirt):
|
|||
return _utils.get_ips(hostname)
|
||||
|
||||
def get_host_tick_count64(self):
|
||||
"""Returns host uptime in miliseconds."""
|
||||
"""Returns host uptime in milliseconds."""
|
||||
return kernel32.GetTickCount64()
|
||||
|
||||
def host_power_action(self, action):
|
||||
|
|
|
@ -64,7 +64,7 @@ class IOUtils(object):
|
|||
@_utils.retry_decorator(exceptions=exceptions.Win32IOException,
|
||||
max_sleep_time=2)
|
||||
def wait_named_pipe(self, pipe_name, timeout=WAIT_PIPE_DEFAULT_TIMEOUT):
|
||||
"""Wait a given ammount of time for a pipe to become available."""
|
||||
"""Wait a given amount of time for a pipe to become available."""
|
||||
self._run_and_check_output(kernel32.WaitNamedPipeW,
|
||||
ctypes.c_wchar_p(pipe_name),
|
||||
timeout * units.k)
|
||||
|
@ -138,7 +138,7 @@ class IOUtils(object):
|
|||
return wintypes.LPOVERLAPPED_COMPLETION_ROUTINE(_completion_routine)
|
||||
|
||||
def get_new_overlapped_structure(self):
|
||||
"""Structure used for asyncronous IO operations."""
|
||||
"""Structure used for asynchronous IO operations."""
|
||||
# Event used for signaling IO completion
|
||||
hEvent = self._create_event()
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ LOG = logging.getLogger(__name__)
|
|||
|
||||
|
||||
class NamedPipeHandler(object):
|
||||
"""Handles asyncronous I/O operations on a specified named pipe."""
|
||||
"""Handles asynchronous I/O operations on a specified named pipe."""
|
||||
|
||||
_MAX_LOG_ROTATE_RETRIES = 5
|
||||
|
||||
|
@ -150,7 +150,7 @@ class NamedPipeHandler(object):
|
|||
def _cancel_io(self):
|
||||
if self._pipe_handle:
|
||||
# We ignore invalid handle errors. Even if the pipe is closed
|
||||
# and the handle reused, by specifing the overlapped structures
|
||||
# and the handle reused, by specifying the overlapped structures
|
||||
# we ensure that we don't cancel IO operations other than the
|
||||
# ones that we care about.
|
||||
self._ioutils.cancel_io(self._pipe_handle, self._r_overlapped,
|
||||
|
|
|
@ -760,7 +760,7 @@ class NetworkUtils(baseutils.BaseUtilsVirt):
|
|||
return acl
|
||||
|
||||
def _create_security_acl(self, sg_rule, weight):
|
||||
# Acl instance can be created new eachtime, the object should be
|
||||
# Acl instance can be created new each time, the object should be
|
||||
# of type ExtendedEthernetSettingsData.
|
||||
acl = self._create_default_setting_data(self._PORT_EXT_ACL_SET_DATA)
|
||||
acl.set(**sg_rule.to_dict())
|
||||
|
|
|
@ -161,7 +161,7 @@ class PathUtils(object):
|
|||
def create_sym_link(self, link, target, target_is_dir=True):
|
||||
"""If target_is_dir is True, a junction will be created.
|
||||
|
||||
NOTE: Juctions only work on same filesystem.
|
||||
NOTE: Junctions only work on same filesystem.
|
||||
"""
|
||||
|
||||
self._win32_utils.run_and_check_output(kernel32.CreateSymbolicLinkW,
|
||||
|
|
|
@ -394,7 +394,7 @@ class ISCSIInitiatorUtils(object):
|
|||
LOG.debug("Logging in iSCSI target %(target_iqn)s",
|
||||
dict(target_iqn=target_iqn))
|
||||
# If the multipath flag is set, multiple sessions to the same
|
||||
# target may be estabilished. MPIO must be enabled and configured
|
||||
# target may be established. MPIO must be enabled and configured
|
||||
# to claim iSCSI disks, otherwise data corruption can occur.
|
||||
login_flags = (w_const.ISCSI_LOGIN_FLAG_MULTIPATH_ENABLED
|
||||
if mpio_enabled else 0)
|
||||
|
|
|
@ -214,7 +214,7 @@ class VHDUtils(object):
|
|||
|
||||
def get_vhd_info(self, vhd_path, info_members=None,
|
||||
open_parents=False):
|
||||
"""Returns a dict containing VHD image informations.
|
||||
"""Returns a dict containing VHD image information.
|
||||
|
||||
:param info_members: A list of information members to be retrieved.
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ class _RESIZE_VIRTUAL_DISK_PARAMETERS_V1(ctypes.Structure):
|
|||
]
|
||||
|
||||
|
||||
# Only V1 is used, we avoid defining an union.
|
||||
# Only V1 is used, we avoid defining a union.
|
||||
class RESIZE_VIRTUAL_DISK_PARAMETERS(ctypes.Structure):
|
||||
_fields_ = [
|
||||
('Version', wintypes.DWORD),
|
||||
|
@ -87,7 +87,7 @@ class _MERGE_VIRTUAL_DISK_PARAMETERS_V1(ctypes.Structure):
|
|||
]
|
||||
|
||||
|
||||
# Only V1 is used, we avoid defining an union.
|
||||
# Only V1 is used, we avoid defining a union.
|
||||
class MERGE_VIRTUAL_DISK_PARAMETERS(ctypes.Structure):
|
||||
_fields_ = [
|
||||
('Version', wintypes.DWORD),
|
||||
|
@ -115,7 +115,7 @@ class _CREATE_VIRTUAL_DISK_PARAMETERS_V2(ctypes.Structure):
|
|||
]
|
||||
|
||||
|
||||
# Only V2 is used, we avoid defining an union.
|
||||
# Only V2 is used, we avoid defining a union.
|
||||
class CREATE_VIRTUAL_DISK_PARAMETERS(ctypes.Structure):
|
||||
_fields_ = [
|
||||
('Version', wintypes.DWORD),
|
||||
|
@ -179,7 +179,7 @@ class GET_VIRTUAL_DISK_INFO(ctypes.Structure):
|
|||
PGET_VIRTUAL_DISK_INFO = ctypes.POINTER(GET_VIRTUAL_DISK_INFO)
|
||||
|
||||
|
||||
# Only this version is used, we avoid defining an union.
|
||||
# Only this version is used, we avoid defining a union.
|
||||
class SET_VIRTUAL_DISK_INFO(ctypes.Structure):
|
||||
_fields_ = [
|
||||
('Version', wintypes.DWORD),
|
||||
|
|
Loading…
Reference in New Issue