From af7e6a931618150290671f2565db42c92398eaf6 Mon Sep 17 00:00:00 2001 From: Dan Zheng Date: Tue, 18 Jul 2023 14:10:05 +0800 Subject: [PATCH] virsh: align same usage for emulatorpin Usually the options value should be started with --. The old codes added '--' in this utility function which is not suitable. We expect the client provides like '--config' to invoke this function as other functions do. Signed-off-by: Dan Zheng --- virttest/virsh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virttest/virsh.py b/virttest/virsh.py index 822c798a22a..077ad530324 100644 --- a/virttest/virsh.py +++ b/virttest/virsh.py @@ -3925,13 +3925,13 @@ def emulatorpin(name, cpulist=None, options=None, **dargs): Control or query domain emulator affinity :param name: name of domain :param cpulist: a list of physical CPU numbers - :param options: options may be live, config and current + :param options: options may be --live, --config and --current :param dargs: standardized virsh function API keywords :return: CmdResult instance """ cmd = "emulatorpin %s" % name if options: - cmd += " --%s" % options + cmd += " %s" % options if cpulist: cmd += " --cpulist %s" % cpulist