diff --git a/xCAT-server-2.0/lib/xcat/plugins/blade.pm b/xCAT-server-2.0/lib/xcat/plugins/blade.pm index 46f521c57..7e72ea6f6 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/blade.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/blade.pm @@ -1352,14 +1352,15 @@ sub telnetcmds { foreach my $cmd (@_) { if ($cmd =~ /=/) { - ($cmd,$value) = split /=/,$cmd; - if (grep(/^$cmd$/,@tcmds)) { - $handled{$cmd} = $value; + my ($command,$value) = split /=/,$cmd; + if (grep(/^$command$/,@tcmds)) { + $handled{$command} = $value; next; - } + } } push @unhandled,$cmd; } + if (!defined(%handled)) { return(@unhandled); }