From 6818c2d3416c881da57c54143127b2ab48352e58 Mon Sep 17 00:00:00 2001 From: sakolish Date: Wed, 9 Apr 2008 17:58:02 +0000 Subject: [PATCH] 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 --- xCAT-server-2.0/lib/xcat/plugins/blade.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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); }