From aff28da21d1913a382adbc1f3dac7e8880706a54 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 5 Sep 2012 17:22:11 +0000 Subject: [PATCH] xdsh adding an undef entry on the returned data, causes syntax error in runxcmd you only see under bypass mode git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13719 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/xdsh.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/xdsh.pm b/xCAT-server/lib/xcat/plugins/xdsh.pm index 6a7c6fe8b..7cbe94c87 100644 --- a/xCAT-server/lib/xcat/plugins/xdsh.pm +++ b/xCAT-server/lib/xcat/plugins/xdsh.pm @@ -756,7 +756,7 @@ sub xdsh for ($j = 0 ; $j < $maxlines ; $j++) { - if ($i > $arraylen) + if ($i >= $arraylen) { last; }