mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Make sure OptVals.quiet is always present (fixes xm shutdown -w).
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
This commit is contained in:
1 parent
ed40790462
commit
350318c598
1 file changed
+2
-2
@@ -250,7 +250,8 @@ class OptVar(Opt):
|
||||
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.
|
||||
|
||||