Blame SOURCES/bz917681-VirtualDomain-heartbeat-updates_v2.patch

cf07b3
From 34994edfb713cfda496b31ce9da3f893960caa1c Mon Sep 17 00:00:00 2001
cf07b3
From: David Vossel <dvossel@redhat.com>
cf07b3
Date: Mon, 7 Oct 2013 19:33:42 -0500
cf07b3
Subject: [PATCH] High: VirtualDomain: Fix ability to use default libvirt hypervisor without explicitly setting agent attribute
cf07b3
cf07b3
---
cf07b3
 heartbeat/VirtualDomain |    6 +++---
cf07b3
 1 files changed, 3 insertions(+), 3 deletions(-)
cf07b3
cf07b3
diff --git a/heartbeat/VirtualDomain b/heartbeat/VirtualDomain
cf07b3
index 04b4390..f7ed100 100755
cf07b3
--- a/heartbeat/VirtualDomain
cf07b3
+++ b/heartbeat/VirtualDomain
cf07b3
@@ -202,9 +202,6 @@ update_utilization() {
cf07b3
 	fi
cf07b3
 }
cf07b3
 
cf07b3
-# Set options to be passed to virsh:
cf07b3
-VIRSH_OPTIONS="--connect=${OCF_RESKEY_hypervisor} --quiet"
cf07b3
-
cf07b3
 VirtualDomain_Status() {
cf07b3
 	local try=0
cf07b3
 	rc=$OCF_ERR_GENERIC
cf07b3
@@ -533,6 +530,9 @@ esac
cf07b3
 OCF_RESKEY_hypervisor_default="$(virsh --quiet uri)"
cf07b3
 : ${OCF_RESKEY_hypervisor=${OCF_RESKEY_hypervisor_default}}
cf07b3
 
cf07b3
+# Set options to be passed to virsh:
cf07b3
+VIRSH_OPTIONS="--connect=${OCF_RESKEY_hypervisor} --quiet"
cf07b3
+
cf07b3
 # Everything except usage and meta-data must pass the validate test
cf07b3
 VirtualDomain_Validate_All || exit $?
cf07b3
 
cf07b3
-- 
cf07b3
1.7.1
cf07b3