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
This commit is contained in:
jbjohnso 2013-02-01 21:41:35 +00:00
parent 365e767cee
commit 4d822dc512

View File

@ -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;