-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:
parent
97026c7299
commit
acaa73631f
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user