mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
Remove bogus check for Xen in example program
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
This commit is contained in:
parent
5414d6b6ae
commit
6b3ede3f02
@ -27,10 +27,6 @@ def print_xml(key, ctx, path):
|
|||||||
print_entry(key, value)
|
print_entry(key, value)
|
||||||
return 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:
|
if len(sys.argv) != 2:
|
||||||
usage()
|
usage()
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
Loading…
Reference in New Issue
Block a user