From 90ec46c87fbf572805c7758377431e26c93622a4 Mon Sep 17 00:00:00 2001 From: Takashi NATSUME Date: Mon, 1 Feb 2016 16:55:27 +0900 Subject: [PATCH] Fix typos in nova/scheduler and nova/virt informations -> information an -> a satisfy -> satisfies TrivialFix Change-Id: I88d561962da4d654e5db50e9f6beb4ea0d807717 --- nova/scheduler/filters/compute_capabilities_filter.py | 2 +- nova/scheduler/host_manager.py | 2 +- nova/virt/libvirt/host.py | 2 +- nova/virt/xenapi/host.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nova/scheduler/filters/compute_capabilities_filter.py b/nova/scheduler/filters/compute_capabilities_filter.py index cfe005934652..e5de487064f7 100644 --- a/nova/scheduler/filters/compute_capabilities_filter.py +++ b/nova/scheduler/filters/compute_capabilities_filter.py @@ -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 diff --git a/nova/scheduler/host_manager.py b/nova/scheduler/host_manager.py index 799152019172..75094e1eac7a 100644 --- a/nova/scheduler/host_manager.py +++ b/nova/scheduler/host_manager.py @@ -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 diff --git a/nova/virt/libvirt/host.py b/nova/virt/libvirt/host.py index 30c1a117ed34..c51cb12f29f6 100644 --- a/nova/virt/libvirt/host.py +++ b/nova/virt/libvirt/host.py @@ -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 """ diff --git a/nova/virt/xenapi/host.py b/nova/virt/xenapi/host.py index b15972353006..6e5d9302ecc9 100644 --- a/nova/virt/xenapi/host.py +++ b/nova/virt/xenapi/host.py @@ -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 = []