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-devel

[Xen-devel] [PATCH] Make sure OptVals.quiet is always present (fixes xm

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Make sure OptVals.quiet is always present (fixes xm shutdown -w)
From: Brendan Cully <brendan@xxxxxxxxx>
Date: Wed, 31 Jan 2007 11:05:48 -0800
Delivery-date: Wed, 31 Jan 2007 11:06:35 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Brendan Cully <brendan@xxxxxxxxx>
# Date 1170270336 28800
# Node ID 71279ab82d3d5fcbc93179443fe08157264b6dc1
# Parent  68d66b82f05ab54e9c23043bf752200f0063a324
Make sure OptVals.quiet is always present (fixes xm shutdown -w).

Signed-off-by: Brendan Cully <brendan@xxxxxxxxx>

diff -r 68d66b82f05a -r 71279ab82d3d tools/python/xen/xm/opts.py
--- a/tools/python/xen/xm/opts.py       Wed Jan 31 10:50:40 2007 -0800
+++ 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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Make sure OptVals.quiet is always present (fixes xm shutdown -w), Brendan Cully <=