-Fix errors in xcatd changes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3030 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f9e4ef54a8
commit
fdb4b70285
@ -423,14 +423,14 @@ sub scan_plugins {
|
||||
}
|
||||
}
|
||||
}
|
||||
my @plugins=glob($plugins_dir."/*.pm");
|
||||
foreach (@plugins) {
|
||||
no strict 'refs';
|
||||
/.*\/([^\/]*).pm$/;
|
||||
my $modname = $1;
|
||||
unless (defined(${"xCAT_plugin::".$modname."::"}{init_plugin})) {
|
||||
next;
|
||||
}
|
||||
${"xCAT_plugin::".$modname."::"}{init_plugin}->();
|
||||
${"xCAT_plugin::".$modname."::"}{init_plugin}->(\&do_request);
|
||||
}
|
||||
}
|
||||
scan_plugins;
|
||||
|
Loading…
Reference in New Issue
Block a user