-Fix problem where destiny/pxe/yaboot kept trying to go even when errors have indicated to bail out

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1326 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-05-07 20:45:48 +00:00
parent 97026c7299
commit acaa73631f
3 changed files with 19 additions and 4 deletions

View File

@ -36,8 +36,13 @@ sub process_request {
sub relay_response {
my $resp = shift;
$callback->($resp);
if ($resp and $resp->{errorcode} and $resp->{errorcode}->[0]) {
$errored = 1;
if ($resp and ($resp->{errorcode} and $resp->{errorcode}->[0]) or ($resp->{error} and $resp->{error}->[0])) {
$errored=1;
}
foreach (@{$resp->{node}}) {
if ($_->{error} or $_->{errorcode}) {
$errored=1;
}
}
}

View File

@ -136,9 +136,14 @@ my $errored = 0;
sub pass_along {
my $resp = shift;
$callback->($resp);
if ($resp and $resp->{errorcode} and $resp->{errorcode}->[0]) {
if ($resp and ($resp->{errorcode} and $resp->{errorcode}->[0]) or ($resp->{error} and $resp->{error}->[0])) {
$errored=1;
}
foreach (@{$resp->{node}}) {
if ($_->{error} or $_->{errorcode}) {
$errored=1;
}
}
}

View File

@ -142,9 +142,14 @@ my $errored = 0;
sub pass_along {
my $resp = shift;
$callback->($resp);
if ($resp and $resp->{errorcode} and $resp->{errorcode}->[0]) {
if ($resp and ($resp->{errorcode} and $resp->{errorcode}->[0]) or ($resp->{error} and $resp->{error}->[0])) {
$errored=1;
}
foreach (@{$resp->{node}}) {
if ($_->{error} or $_->{errorcode}) {
$errored=1;
}
}
}