WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Reset the option-parsing object before us

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Reset the option-parsing object before using it -- this means that the
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 03 Jan 2007 16:30:09 -0800
Delivery-date: Wed, 03 Jan 2007 16:30:14 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1167749173 0
# Node ID 6b3bb79cb1c9ba0ec616164a640ddf7c0df9d619
# Parent  2390f017e24f0ecac42a120dfa218db535cf6ea1
Reset the option-parsing object before using it -- this means that the
option parsing works when using xm shell.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/python/xen/xm/migrate.py  |    1 +
 tools/python/xen/xm/shutdown.py |    1 +
 2 files changed, 2 insertions(+)

diff -r 2390f017e24f -r 6b3bb79cb1c9 tools/python/xen/xm/migrate.py
--- a/tools/python/xen/xm/migrate.py    Tue Jan 02 14:45:32 2007 +0000
+++ b/tools/python/xen/xm/migrate.py    Tue Jan 02 14:46:13 2007 +0000
@@ -52,6 +52,7 @@ def help():
     
 def main(argv):
     opts = gopts
+    opts.reset()
     args = opts.parse(argv)
     
     if len(args) != 2:
diff -r 2390f017e24f -r 6b3bb79cb1c9 tools/python/xen/xm/shutdown.py
--- a/tools/python/xen/xm/shutdown.py   Tue Jan 02 14:45:32 2007 +0000
+++ b/tools/python/xen/xm/shutdown.py   Tue Jan 02 14:46:13 2007 +0000
@@ -118,6 +118,7 @@ def main_dom(opts, args):
     
 def main(argv):
     opts = gopts
+    opts.reset()
     args = opts.parse(argv)
     if opts.vals.help:
         return

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Reset the option-parsing object before using it -- this means that the, Xen patchbot-unstable <=