ia64/xen-unstable

changeset 16745:6fdb108db46c

xm: Fix xm restore command.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jan 17 15:23:47 2008 +0000 (2008-01-17)
parents dc9916adaa1d
children 95558b4a6714
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Thu Jan 17 15:21:35 2008 +0000
     1.2 +++ b/tools/python/xen/xm/main.py	Thu Jan 17 15:23:47 2008 +0000
     1.3 @@ -738,13 +738,10 @@ def xm_restore(args):
     1.4          err("xm restore: Unable to read file %s" % savefile)
     1.5          sys.exit(1)
     1.6  
     1.7 -    try:
     1.8 -        if serverType == SERVER_XEN_API:
     1.9 -            server.xenapi.VM.restore(savefile, paused)
    1.10 -        else:
    1.11 -            server.xend.domain.restore(savefile, paused)
    1.12 -    except Exception, ex:
    1.13 -        err("%s" % ex.faultString)
    1.14 +    if serverType == SERVER_XEN_API:
    1.15 +        server.xenapi.VM.restore(savefile, paused)
    1.16 +    else:
    1.17 +        server.xend.domain.restore(savefile, paused)
    1.18  
    1.19  
    1.20  def datetime_to_secs(v):