aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido G√ľnther <agx@sigxcpu.org>2008-10-23 12:57:29 +0200
committerGuido Guenther <agx@sigxcpu.org>2008-10-23 12:57:29 +0200
commit4369c7459be29ef6966c7c5ebf0b2edf06151f0e (patch)
tree710bdc72c7b07c7191e73df9f4abeb5139e4146a
parent316632529403a66c38b24ed492e6758189f760e4 (diff)
add default uri
-rw-r--r--libvirt-blkstat9
-rw-r--r--libvirt-cputime9
-rw-r--r--libvirt-ifstat9
-rw-r--r--libvirt-mem9
4 files changed, 4 insertions, 32 deletions
diff --git a/libvirt-blkstat b/libvirt-blkstat
index 3104c4b..0003754 100644
--- a/libvirt-blkstat
+++ b/libvirt-blkstat
@@ -9,13 +9,6 @@
#
# depends: python-libvirt, python-libxml2
#
-# If you don't want to use the default uri use:
-#
-# [libvirt-*]
-# env.uri qemu:///system
-#
-# in your plugin configuration
-#
#%# capabilities=autoconf
#%# family=contrib
@@ -96,7 +89,7 @@ def fetch_values(uri):
def main(sys):
- uri = os.getenv("uri")
+ uri = os.getenv("uri", "qemu:///system")
if len(sys) > 1:
if sys[1] in [ 'autoconf', 'detect' ]:
diff --git a/libvirt-cputime b/libvirt-cputime
index a26124c..42884a5 100644
--- a/libvirt-cputime
+++ b/libvirt-cputime
@@ -10,13 +10,6 @@
#
# depends: python-libvirt
#
-# If you don't want to use the default uri use:
-#
-# [libvirt-*]
-# env.uri qemu:///system
-#
-# in your plugin configuration
-#
#%# capabilities=autoconf
#%# family=contrib
@@ -59,7 +52,7 @@ def fetch_values(uri):
def main(sys):
- uri = os.getenv("uri")
+ uri = os.getenv("uri", "qemu:///system")
if len(sys) > 1:
if sys[1] in [ 'autoconf', 'detect' ]:
diff --git a/libvirt-ifstat b/libvirt-ifstat
index fa3eed8..35a807c 100644
--- a/libvirt-ifstat
+++ b/libvirt-ifstat
@@ -9,13 +9,6 @@
#
# depends: python-libvirt, python-libxml2
#
-# If you don't want to use the default uri use:
-#
-# [libvirt-*]
-# env.uri qemu:///system
-#
-# in your plugin configuration
-#
#%# capabilities=autoconf
#%# family=contrib
@@ -95,7 +88,7 @@ def fetch_values(uri):
def main(sys):
- uri = os.getenv("uri")
+ uri = os.getenv("uri", "qemu:///system")
if len(sys) > 1:
if sys[1] in [ 'autoconf', 'detect' ]:
diff --git a/libvirt-mem b/libvirt-mem
index e0644ba..151d614 100644
--- a/libvirt-mem
+++ b/libvirt-mem
@@ -10,13 +10,6 @@
#
# depends: python-libvirt
#
-# If you don't want to use the default uri use:
-#
-# [libvirt-*]
-# env.uri qemu:///system
-#
-# in your plugin configuration
-#
#%# capabilities=autoconf
#%# family=contrib
@@ -79,7 +72,7 @@ def fetch_values(uri):
def main(sys):
- uri = os.getenv("uri")
+ uri = os.getenv("uri", "qemu:///system")
if len(sys) > 1:
if sys[1] in [ 'autoconf', 'detect' ]: