From 17ed758d1092682e3415499712869e64a8bb994d Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Thu, 14 Oct 2010 04:24:27 +0000 Subject: [PATCH] One partitial issue in lpar_netboot.expect if rpower cannot return the correct state of lpar git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7846 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/lpar_netboot.expect | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/sbin/lpar_netboot.expect b/xCAT-server/sbin/lpar_netboot.expect index 329b17dea..13b21349e 100644 --- a/xCAT-server/sbin/lpar_netboot.expect +++ b/xCAT-server/sbin/lpar_netboot.expect @@ -98,7 +98,9 @@ proc run_lssyscfg {} { set rc [catch $runcmd msg] nc_msg "$PROGRAM Status: run_lssyscg : partition status : $msg\n" regexp "$node:\[ ]*(.*)" $msg tmp1 tmp - set msg $tmp + if { $tmp } { + set msg $tmp + } nc_msg "####msg:$msg#########\n"