From ca62a3c8446b34d8149d6eb8c7588e0db830b3bb Mon Sep 17 00:00:00 2001 From: liu-lixiu Date: Thu, 24 Aug 2017 16:30:05 +0800 Subject: [PATCH] fix a typo in format_cpu_spec doc It allow_ranges is true -> If allow_ranges is true Change-Id: Ia285c1dfb851a652f36e8ce1adb7c0e88853ac3a Closes-Bug:#1712763 --- nova/virt/hardware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/virt/hardware.py b/nova/virt/hardware.py index 00fe8fbd3359..2920e39840a8 100644 --- a/nova/virt/hardware.py +++ b/nova/virt/hardware.py @@ -120,7 +120,7 @@ def format_cpu_spec(cpuset, allow_ranges=True): """Format a libvirt CPU range specification. Format a set/list of CPU indexes as a libvirt CPU range - specification. It allow_ranges is true, it will try to detect + specification. If allow_ranges is true, it will try to detect continuous ranges of CPUs, otherwise it will just list each CPU index explicitly.