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
This commit is contained in:
parent
3f87212616
commit
f060cd13cf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user