Fix typos in nova/scheduler and nova/virt

informations -> information
an -> a
satisfy -> satisfies

TrivialFix
Change-Id: I88d561962da4d654e5db50e9f6beb4ea0d807717
This commit is contained in:
Takashi NATSUME 2016-02-01 16:55:27 +09:00
parent 3d41e8ffce
commit 90ec46c87f
4 changed files with 5 additions and 5 deletions

View File

@ -66,7 +66,7 @@ class ComputeCapabilitiesFilter(filters.BaseHostFilter):
def _satisfies_extra_specs(self, host_state, instance_type):
"""Check that the host_state provided by the compute service
satisfy the extra specs associated with the instance type.
satisfies the extra specs associated with the instance type.
"""
if 'extra_specs' not in instance_type:
return True

View File

@ -243,7 +243,7 @@ class HostState(object):
self.ram_allocation_ratio = compute.ram_allocation_ratio
def consume_from_request(self, spec_obj):
"""Incrementally update host state from an RequestSpec object."""
"""Incrementally update host state from a RequestSpec object."""
@utils.synchronized(self._lock_name)
@set_update_time_on_success

View File

@ -700,7 +700,7 @@ class Host(object):
:param only_running: True to only return running instances
:param only_guests: True to filter out any host domain (eg Dom-0)
See method "list_instance_domains" for more informations.
See method "list_instance_domains" for more information.
:returns: list of Guest objects
"""

View File

@ -168,7 +168,7 @@ class HostState(object):
"""Exctract information from the device string about the slot, the
vendor and the product ID. The string is as follow:
"Slot:\tBDF\nClass:\txxxx\nVendor:\txxxx\nDevice:\txxxx\n..."
Return a dictionary with informations about the device.
Return a dictionary with information about the device.
"""
slot_regex = _compile_hex(r"Slot:\t"
r"((?:hex{4}:)?" # Domain: (optional)
@ -207,7 +207,7 @@ class HostState(object):
pci_list = lspci_out.split("\n\n")
# For each device of the list, check if it uses the pciback
# kernel driver and if it does, get informations and add it
# kernel driver and if it does, get information and add it
# to the list of passthrough_devices. Ignore it if the driver
# is not pciback.
passthrough_devices = []