diff --git a/tools/python/xen/xm/opts.py b/tools/python/xen/xm/opts.py index 325698875d..9bae32e082 100644 --- a/tools/python/xen/xm/opts.py +++ b/tools/python/xen/xm/opts.py @@ -242,7 +242,7 @@ class Opts: """Get an option value. An option value can also be got using 'opts.vals.name'. """ - getattr(self.vals, name) + return getattr(self.vals, name) def specified(self, name): """Test if an option has been specified.