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:
parent
f09d85c5a2
commit
f3e5e9c17d
@ -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 ################
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user