ia64/xen-unstable

changeset 2143:19d6528c3d3d

bitkeeper revision 1.1159.6.6 (41179dabYIpxIUZuaPwVjF-Fu7boXA)

Fix restore to have correct arguments.
author mjw@wray-m-3.hpl.hp.com
date Mon Aug 09 15:52:11 2004 +0000 (2004-08-09)
parents 1157e187afb2
children 99bda1b6ff7f
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Mon Aug 09 15:48:32 2004 +0000
     1.2 +++ b/tools/python/xen/xm/main.py	Mon Aug 09 15:52:11 2004 +0000
     1.3 @@ -282,17 +282,13 @@ class ProgRestore(Prog):
     1.4      info = """Create a domain from a saved state."""
     1.5  
     1.6      def help(self, args):
     1.7 -        print args[0], "FILE [CONFIG]"
     1.8 -        print "\nRestore a domain from FILE using configuration CONFIG."
     1.9 +        print args[0], "FILE"
    1.10 +        print "\nRestore a domain from FILE."
    1.11      
    1.12 -    def main(self, help, args):
    1.13 +    def main(self, args):
    1.14          if len(args) < 2: self.err("%s: Missing arguments" % args[0])
    1.15 -        savefile =  os.path.abspath(args[1])
    1.16 -        if len(args) >= 3:
    1.17 -            configfile = os.path.abspath(args[2])
    1.18 -        else:
    1.19 -            configfile = None
    1.20 -        info = server.xend_domain_restore(savefile, configfile)
    1.21 +        savefile = os.path.abspath(args[1])
    1.22 +        info = server.xend_domain_restore(savefile)
    1.23          PrettyPrint.prettyprint(info)
    1.24  
    1.25  xm.prog(ProgRestore)