From: Keir Fraser Date: Wed, 27 Feb 2008 13:19:42 +0000 (+0000) Subject: Fix xm save command's #params check. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14296^2~21 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=28617ff2d019e6ee3bd1e4e487567243297ab36e;p=xen.git Fix xm save command's #params check. Signed-off-by: Masaki Kanno --- diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index da2de11d98..34bdc6756e 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -699,9 +699,6 @@ def xm_save(args): err(opterr) sys.exit(1) - dom = params[0] - savefile = params[1] - checkpoint = False for (k, v) in options: if k in ['-c', '--checkpoint']: @@ -710,9 +707,9 @@ def xm_save(args): if len(params) != 2: err("Wrong number of parameters") usage('save') - sys.exit(1) - savefile = os.path.abspath(savefile) + dom = params[0] + savefile = os.path.abspath(params[1]) if not os.access(os.path.dirname(savefile), os.W_OK): err("xm save: Unable to create file %s" % savefile)