From bd6718999b12808b57b2d339e9e0127c45d2d70a Mon Sep 17 00:00:00 2001 From: XuWei Date: Tue, 10 Apr 2018 21:55:04 -0400 Subject: [PATCH] modify return code of rspconfig hostname error --- xCAT-server/lib/xcat/plugins/openbmc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index d5671b12b..f576e20a5 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -983,7 +983,7 @@ sub process_request { if ($next_status{LOGIN_RESPONSE} eq "RSPCONFIG_SET_HOSTNAME_REQUEST" and $status_info{RSPCONFIG_SET_HOSTNAME_REQUEST}{data} =~ /^\*$/) { if ($node_info{$node}{bmc} =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/) { my $info_msg = "Invalid OpenBMC Hostname $node_info{$node}{bmc}, can't set to OpenBMC"; - xCAT::SvrUtils::sendmsg($info_msg, $callback, $node); + xCAT::SvrUtils::sendmsg([1, $info_msg], $callback, $node); $wait_node_num--; next; }