[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Make sure OptVals.quiet is always present (fixes xm shutdown -w).



# HG changeset patch
# User Brendan Cully <brendan@xxxxxxxxx>
# Date 1170270336 28800
# Node ID ffe95edc5266f1b05d34a8f45ec03d3b5302abe1
# Parent  8bc64a3a505413e4d3bd7def06539ef088f2ca0c
Make sure OptVals.quiet is always present (fixes xm shutdown -w).

Signed-off-by: Brendan Cully <brendan@xxxxxxxxx>
---
 tools/python/xen/xm/opts.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 8bc64a3a5054 -r ffe95edc5266 tools/python/xen/xm/opts.py
--- a/tools/python/xen/xm/opts.py       Mon Feb 05 16:40:19 2007 +0000
+++ b/tools/python/xen/xm/opts.py       Wed Jan 31 11:05:36 2007 -0800
@@ -250,7 +250,8 @@ class OptVals:
 class OptVals:
     """Class to hold option values.
     """
-    pass
+    def __init__(self):
+        self.quiet = False
 
 class Opts:
     """Container for options.
@@ -276,7 +277,6 @@ class Opts:
         self.argv = []
         # Option values.
         self.vals = OptVals()
-        self.vals.quiet = 0
         # Variables for default scripts.
         self.vars = {}
         # Option to use for bare words.

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.