feat(xo-server/xapi-object-to-xo): display full driver version (#5691)
This commit is contained in:
parent
20f4c952fe
commit
d191ca54ad
@ -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
|
||||
|
||||
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user