Broke "rspconfig cmd=arg" syntax w/ change 1008 - Line #1335

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1009 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sakolish 2008-04-09 17:58:02 +00:00
parent b91509ed4a
commit 6818c2d341

View File

@ -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);
}