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
tree: b5646ccd21d0ba7a5a46f52da4c278b2dbd56c2f
  1. conf/
  2. dynamic-layers/
  3. meta-nuvoton-npcm8xx/
  4. recipes-connectivity/
  5. recipes-core/
  6. recipes-extended/
  7. recipes-google/
  8. recipes-kernel/
  9. recipes-phosphor/
  10. LICENSE
  11. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.