[PATCH] Remove bogus check for Xen in example program

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]