Have slpdiscover tolerate errors per managed target more gracefully

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12579 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-05-09 13:48:02 +00:00
parent d71018a664
commit 87edafb925

View File

@ -151,7 +151,8 @@ sub do_blade_setup {
}
require xCAT_plugin::blade;
my @cmds = qw/snmpcfg=enable sshcfg=enable textid=* initnetwork=*/;
my $result = xCAT_plugin::blade::clicmds(
my $result;
my $rc = eval { $result = xCAT_plugin::blade::clicmds(
$nodename,
$localuser,
$localpass,
@ -160,6 +161,11 @@ sub do_blade_setup {
curraddr=>$addr,
defaultcfg=>1,
cmds=>\@cmds );
1;
};
if (not $rc) {
sendmsg([1,"Failed to set up Management module due to $@"],$callback,$nodename);
}
if ($result) {
if ($result->[0]) {
sendmsg([$result->[0],$result->[2]],$callback,$nodename);