From 478cd92c19492762902f753220391449020f380e Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 25 Aug 2010 18:13:20 +0000 Subject: [PATCH] -Fix default variable value mixup git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7239 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index e0d3f734a..f2a95997d 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -509,16 +509,16 @@ sub scan_plugins { my $value = $_; my @modulehandlerinfos; if (ref $cmd_adds->{$_}) { - @modulehandlerinfos=@{$cmd_adds->{$_}}; + @modulehandlerinfos=@{$cmd_adds->{$value}}; } else { - @modulehandlerinfos=($cmd_adds->{$_}); + @modulehandlerinfos=($cmd_adds->{$value}); } - unless (defined($cmd_handlers{$_})) { - $cmd_handlers{$_} = [ ]; + unless (defined($cmd_handlers{$value})) { + $cmd_handlers{$value} = [ ]; } # Add every plugin registration to cmd_handlers foreach (@modulehandlerinfos) { - push @{$cmd_handlers{$_}},[$modname,$_]; + push @{$cmd_handlers{$value}},[$modname,$_]; } } }