From fdb4b70285ee090caa5e945bc2021cafee84a4b4 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sat, 28 Mar 2009 06:17:42 +0000 Subject: [PATCH] -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 --- xCAT-server/sbin/xcatd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 0b28db62f..b7e5fb779 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -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;