[xcat-user] MsgUtils->message cannot handle msg with {node} structure

Lissa Valletta lissav at us.ibm.com
Wed Feb 4 05:46:49 MST 2009


I need a little more information . MsgUtils does not actually print the 
message,   the print comes out of the  $cb ( call back function).      You 
need to look at the callback function you are using to see if it will 
support the data structure you input.   MsgUtils just passes the $out_buf 
to the $cb.   What exactly do you see at line 243, and please include a 
copy of the MsgUtils.pm you are running. 

Lissa K. Valletta
414/3-8
Poughkeepsie, NY 12601
(tie 293) 433-3102





Xiao Peng Wang <wxp at cn.ibm.com> 
Sent by: xcat-user-bounces at lists.xcat.org
02/04/2009 04:51 AM
Please respond to
xCAT Users Mailing list <xcat-user at lists.xcat.org>


To
xcat-user at lists.xcat.org
cc

Subject
[xcat-user] MsgUtils->message cannot handle msg with {node}     structure






Greetings
The default callback function is xCAT::Client::handle_response, it can 
handle the message printing which returned from plugin.
The function xCAT::MsgUtils->message can supply similar function when 
passed the callback parameter.

An issue is when trying to print response message with {node} information, 
the print will be failed.

For example:
$out_buf->{node}->[0]->{name}->[0] = $node;
$out_buf->{node}->[0]->{data}->[0] = "xxx";
xCAT::MsgUtils->message("E", $out_buf, $cb); 

Nothing will be printed.

From code of xCAT::MsgUtils->message (L243), I found it miss handle the 
case that response has {node} information. 
Thanks
Best Regards
----------------------------------------------------------------------
Wang Xiaopeng (ÍõÏþÅó)
IBM China System Technology Laboratory
Tel: 86-10-82453455
Email: wxp at cn.ibm.com
Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, 
Haidian District Beijing P.R.China 100193
_______________________________________________
xcat-user mailing list
xcat-user at lists.xcat.org
http://www.xcat.org/mailman/listinfo/xcat-user


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.xcat.org/pipermail/xcat-user/attachments/20090204/ad35c71f/attachment-0001.htm


More information about the xcat-user mailing list