ia64/xen-unstable

changeset 13850:ffe95edc5266

Make sure OptVals.quiet is always present (fixes xm shutdown -w).

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
author Brendan Cully <brendan@cs.ubc.ca>
date Wed Jan 31 11:05:36 2007 -0800 (2007-01-31)
parents 8bc64a3a5054
children 0c17f16f9f03
files tools/python/xen/xm/opts.py
line diff
     1.1 --- a/tools/python/xen/xm/opts.py	Mon Feb 05 16:40:19 2007 +0000
     1.2 +++ b/tools/python/xen/xm/opts.py	Wed Jan 31 11:05:36 2007 -0800
     1.3 @@ -250,7 +250,8 @@ class OptVar(Opt):
     1.4  class OptVals:
     1.5      """Class to hold option values.
     1.6      """
     1.7 -    pass
     1.8 +    def __init__(self):
     1.9 +        self.quiet = False
    1.10  
    1.11  class Opts:
    1.12      """Container for options.
    1.13 @@ -276,7 +277,6 @@ class Opts:
    1.14          self.argv = []
    1.15          # Option values.
    1.16          self.vals = OptVals()
    1.17 -        self.vals.quiet = 0
    1.18          # Variables for default scripts.
    1.19          self.vars = {}
    1.20          # Option to use for bare words.