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;