From 4d822dc5122d257bd88cd7d60da528d7da1a61ca Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 1 Feb 2013 21:41:35 +0000 Subject: [PATCH] Have kvm tolerate trailing / on vm.storage dir:// urls git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@15041 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kvm.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index db2c98807..f34d7eec2 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -177,6 +177,7 @@ sub get_storage_pool_by_url { unless ($path =~ /^\//) { $path = '/'.$path; } + $path =~ s/\/\z//; #delete trailing / if table specifies, a perfectly understable 'mistake' my $checkpath = $pool->findnodes("/pool/target/path/text()")->[0]->data; if ($checkpath eq $path) { last;