ia64/xen-unstable
changeset 16355:6d7ea0cf6e5b
xm: Fix long options of xm sched-credit
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>
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>
author | Keir Fraser <keir@xensource.com> |
---|---|
date | Thu Nov 08 10:23:22 2007 +0000 (2007-11-08) |
parents | 03e7f6806adb |
children | 8ff5bb70136d |
files | tools/python/xen/xm/main.py |
line diff
1.1 --- a/tools/python/xen/xm/main.py Thu Nov 08 10:21:47 2007 +0000 1.2 +++ b/tools/python/xen/xm/main.py Thu Nov 08 10:23:22 2007 +0000 1.3 @@ -1529,11 +1529,11 @@ def xm_sched_credit(args): 1.4 cap = None 1.5 1.6 for o, a in opts: 1.7 - if o == "-d": 1.8 + if o in ["-d", "--domain"]: 1.9 domid = a 1.10 - elif o == "-w": 1.11 + elif o in ["-w", "--weight"]: 1.12 weight = int(a) 1.13 - elif o == "-c": 1.14 + elif o in ["-c", "--cap"]: 1.15 cap = int(a); 1.16 1.17 doms = filter(lambda x : domid_match(domid, x),