diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index db2c98807..f34d7eec2 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -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;