From f060cd13cf37a66cf60de8051d35ce93f6f7a62c Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 1 Feb 2013 21:31:08 +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/trunk@15040 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 bf9ab3857..4476fc1bf 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -197,6 +197,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;