mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 19:02:27 +00:00 
			
		
		
		
	dynamically loading plugins before we use it.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11754 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -259,6 +259,7 @@ sub lstree | ||||
|         { | ||||
|             foreach my $type (keys %hwnodes) | ||||
|             { | ||||
|                 eval "require xCAT_plugin::$type"; | ||||
|                 $hwtrees{$type} = ${"xCAT_plugin::".$type."::"}{genhwtree}->(\@{$hwnodes{$type}}, $callback); | ||||
|             } | ||||
|         } | ||||
| @@ -307,7 +308,11 @@ sub lstree | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         my $ret = xCAT_plugin::zvm::listTree($callback, \@znodes); | ||||
|         if (scalar @znodes) | ||||
|         { | ||||
|          eval "require xCAT_plugin::zvm"; | ||||
|          my $ret = xCAT_plugin::zvm::listTree($callback, \@znodes); | ||||
|         } | ||||
|          | ||||
|         ########### end ################ | ||||
|          | ||||
|   | ||||
		Reference in New Issue
	
	Block a user