mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 13:22:36 +00:00 
			
		
		
		
	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:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user