feat(xo-server): expose host.residentVms

This commit is contained in:
Julien Fontanet
2023-01-16 17:33:47 +01:00
parent 6c44a94bf4
commit c2e5225728
2 changed files with 3 additions and 0 deletions

View File

@@ -7,6 +7,8 @@
> Users must be able to say: “Nice enhancement, I'm eager to test it”
- [REST API] Expose `residentVms` property on hosts objects
### Bug fixes
> Users must be able to say: “I had this issue, happy to know it's fixed”

View File

@@ -224,6 +224,7 @@ const TRANSFORMS = {
patches: link(obj, 'patches'),
powerOnMode: obj.power_on_mode,
power_state: metrics ? (isRunning ? 'Running' : 'Halted') : 'Unknown',
residentVms: link(obj, 'resident_VMs'),
startTime: toTimestamp(otherConfig.boot_time),
supplementalPacks:
supplementalPacks ||