]> xenbits.xensource.com Git - xen.git/commitdiff
xm: Fix long options of xm sched-credit
authorKeir Fraser <keir@xensource.com>
Thu, 8 Nov 2007 10:23:22 +0000 (10:23 +0000)
committerKeir Fraser <keir@xensource.com>
Thu, 8 Nov 2007 10:23:22 +0000 (10:23 +0000)
Long options of xm sched-credit command are ignored (--domain,
--weight, --cap). This patch fixes it.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xm/main.py

index 929f7c1c1eded4b5caee48c06b7c9f3ae1af77d9..5528395e03e11b43234eb8445a85ef937b5ae983 100644 (file)
@@ -1529,11 +1529,11 @@ def xm_sched_credit(args):
     cap = None
 
     for o, a in opts:
-        if o == "-d":
+        if o in ["-d", "--domain"]:
             domid = a
-        elif o == "-w":
+        elif o in ["-w", "--weight"]:
             weight = int(a)
-        elif o == "-c":
+        elif o in ["-c", "--cap"]:
             cap = int(a);
 
     doms = filter(lambda x : domid_match(domid, x),