Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > media > main-src > by-pkgid > e536fc0c6270ec1d92a0fd41bb1f8360 > files > 24

rgmanager-2.0.52-28.el5_8.2.src.rpm

From ca7c9e3bc4dafe47303e90a4a74b76ad29050e39 Mon Sep 17 00:00:00 2001
From: Lon Hohberger <lhh@redhat.com>
Date: Thu, 27 Aug 2009 15:12:46 -0400
Subject: [PATCH] rgmanager: Fix missing path attribute handling

If using the Xen hypervisor with vm configs in a non
standard location (e.g. not /etc/xen), rgmanager was
ignoring the path attribute, preventing VM management.

Resolves: rhbz#519786

Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
 rgmanager/src/resources/vm.sh |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/rgmanager/src/resources/vm.sh b/rgmanager/src/resources/vm.sh
index 24e286d..df0c9b7 100755
--- a/rgmanager/src/resources/vm.sh
+++ b/rgmanager/src/resources/vm.sh
@@ -141,6 +141,17 @@ meta_data()
             <content type="string" default="live"/>
         </parameter>
 
+	<parameter name="path">
+	    <longdesc lang="en">
+		Path specification 'xm create' will search for the specified
+ 		VM configuration file
+	    </longdesc>
+	    <shortdesc lang="en">
+		Path to virtual machine configuration files
+ 	    </shortdesc>
+	    <content type="string"/>
+ 	</parameter>
+
 	<parameter name="snapshot">
 	    <longdesc lang="en">
 	    	Path to the snapshot directory where the virtual machine
-- 
1.6.2.5