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:
parent
365e767cee
commit
4d822dc512
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user