feat(xo-server/xapi-object-to-xo): display full driver version (#5691)

This commit is contained in:
Mathieu 2021-03-24 13:38:49 +01:00 committed by GitHub
parent 20f4c952fe
commit d191ca54ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@
> Users must be able to say: “Nice enhancement, I'm eager to test it”
- [Backup] Run backup jobs on different system processes (PR [#5660](https://github.com/vatesfr/xen-orchestra/pull/5660))
- [VM] Display the full driver version in the general and advanced tab instead of `major.minor` [#5680](https://github.com/vatesfr/xen-orchestra/issues/5680) (PR [#5691](https://github.com/vatesfr/xen-orchestra/pull/5691))
### Bug fixes

View File

@ -83,7 +83,7 @@ const getVmGuestToolsProps = vm => {
return {}
}
const { major, minor } = guestMetrics.PV_drivers_version
const { build, major, micro, minor } = guestMetrics.PV_drivers_version
const hasPvVersion = major !== undefined && minor !== undefined
// "PV_drivers_detected" field doesn't exist on XS < 7
@ -93,7 +93,7 @@ const getVmGuestToolsProps = vm => {
// Linux VMs don't have the flag "feature-static-ip-setting"
managementAgentDetected: hasPvVersion || guestMetrics.other['feature-static-ip-setting'] === '1',
pvDriversDetected,
pvDriversVersion: hasPvVersion ? `${major}.${minor}` : undefined,
pvDriversVersion: hasPvVersion ? `${major}.${minor}.${micro}-${build}` : undefined,
pvDriversUpToDate: pvDriversDetected ? guestMetrics.PV_drivers_up_to_date : undefined,
}
}