Make sure OptVals.quiet is always present (fixes xm shutdown -w)
PATCH 1/1 Make sure OptVals.quiet is always present (fixes xm shutdown -w)
# HG changeset patch
# User Brendan Cully <[email protected]>
# Date 1170270336 28800
# Node ID 71279ab82d3d5fcbc93179443fe08157264b6dc1
# Parent 68d66b82f05ab54e9c23043bf752200f0063a324
Make sure OptVals.quiet is always present (fixes xm shutdown -w).
tools/python/xen/xm/opts.py +2 -2
@@ -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.
Quoted 8 lines · Brendan Cully
# HG changeset patch
# User Brendan Cully <[email protected]>
# Date 1170270336 28800
# Node ID71279ab82d3d5fcbc93179443fe08157264b6dc1
# Parent68d66b82f05ab54e9c23043bf752200f0063a324
Make sure OptVals.quiet is always present (fixes xm shutdown -w).Signed-off-by Brendan Cully <[email protected]>
I get a reliable traceback every time I use xm shutdown -w (without this patch). Is anyone else seeing this?
Ewan Mellor
AppliedQuoted 8 lines · Brendan Cully
# HG changeset patch
# User Brendan Cully <[email protected]>
# Date 1170270336 28800
# Node ID71279ab82d3d5fcbc93179443fe08157264b6dc1
# Parent68d66b82f05ab54e9c23043bf752200f0063a324
Make sure OptVals.quiet is always present (fixes xm shutdown -w).Signed-off-by Brendan Cully <[email protected]>
Applied, thanks.
Ewan.