[libvirt] [PATCH] Remove bogus check for Xen in example program
Daniel P. Berrange
berrange at redhat.com
Mon Nov 8 14:34:29 UTC 2010
The dominfo.py example script has a bogus check for /proc/xen
existing. The default connection cannot be assumed to be Xen
any more
* examples/python/dominfo.py: Remove check for Xen
---
examples/python/dominfo.py | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/examples/python/dominfo.py b/examples/python/dominfo.py
index e41709c..7b0b900 100755
--- a/examples/python/dominfo.py
+++ b/examples/python/dominfo.py
@@ -27,10 +27,6 @@ def print_xml(key, ctx, path):
print_entry(key, value)
return value
-if not os.access("/proc/xen", os.R_OK):
- print 'System is not running a Xen kernel'
- sys.exit(1)
-
if len(sys.argv) != 2:
usage()
sys.exit(2)
--
1.7.2.3
More information about the libvir-list
mailing list