mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 11:42:05 +00:00
defect#66 rest api for vitals all return 500 Internal Server Error
This commit is contained in:
parent
ebe296f8e2
commit
9199cda4d9
@ -1763,7 +1763,8 @@ sub actionout {
|
||||
push @{$jsonnode->{$d->{node}->[0]->{name}->[0]}->{$param->{'resourcename'}}}, $d->{node}->[0]->{data}->[0]->{contents}->[0];
|
||||
} elsif ($param->{'resourcename'} =~ /(vitals|inventory)/) {
|
||||
# handle output of rvital and rinv for ppc node
|
||||
push @{$jsonnode->{$d->{node}->[0]->{name}->[0]}}, $d->{node}->[0]->{data}->[0]->{contents}->[0];
|
||||
#push @{$jsonnode->{$d->{node}->[0]->{name}->[0]}}, $d->{node}->[0]->{data}->[0]->{contents}->[0];
|
||||
push @{$jsonnode->{$d->{node}->[0]->{name}->[0]}->{Message}}, $d->{node}->[0]->{data}->[0]->{contents}->[0];
|
||||
} else {
|
||||
$jsonnode->{$d->{node}->[0]->{name}->[0]}->{$param->{'resourcename'}} = $d->{node}->[0]->{data}->[0]->{contents}->[0];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user