ia64/xen-unstable

changeset 1726:1836a17e5c3f

bitkeeper revision 1.1057 (40ee8584myg8XmLDN-LhS0RxAdp2Pg)

Fix getopt to return a value.
author mjw@wray-m-3.hpl.hp.com
date Fri Jul 09 11:46:12 2004 +0000 (2004-07-09)
parents 0c56e48ba3b6
children ea24a5b766a2
files tools/python/xen/xm/opts.py
line diff
     1.1 --- a/tools/python/xen/xm/opts.py	Fri Jul 09 11:45:12 2004 +0000
     1.2 +++ b/tools/python/xen/xm/opts.py	Fri Jul 09 11:46:12 2004 +0000
     1.3 @@ -242,7 +242,7 @@ class Opts:
     1.4          """Get an option value.
     1.5          An option value can also be got using 'opts.vals.name'.
     1.6          """
     1.7 -        getattr(self.vals, name)
     1.8 +        return getattr(self.vals, name)
     1.9  
    1.10      def specified(self, name):
    1.11          """Test if an option has been specified.