bmcweb: Fix the missing Members section when cpu count is 0
There is a corner case in Processor efficient expand response,
which causes the Members field to be missing when the system has
0 cpus.
Tested:
Verfied that the response has members section when system has no cpus
```
wget -qO- 'http://localhost:80/redfish/v1/Systems/system/Processors?$expand=.($levels=1)'
{
"@odata.id": "/redfish/v1/Systems/system/Processors",
"@odata.type": "#ProcessorCollection.ProcessorCollection",
"Members": [],
"Members@odata.count": 0,
"Name": "Processor Collection"
}
Also verified that the normal case (where cpus are present) is not
affected.
```
Google-Bug-Id: 245990552
Google-Bug-Id: 276975902
Change-Id: Id4169bff9b526bad79230ce3907e46c3c9bc3074
Signed-off-by: Nikhil Namjoshi <nikhilnamjoshi@google.com>
1 file changed